Skip to content

Incorrect error "undefined method" messages #16574

Closed
@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
$i = new ArrayIterator(array(1,1,1,1,1));
$i = new CachingIterator($i,CachingIterator::FULL_CACHE);
$fusion = $i;
$fusion->load("x");
?>

Resulted in this output:

Fatal error: Uncaught Error: Call to undefined method ArrayIterator::load()

But I expected this output instead (JIT 1215):

Fatal error: Uncaught Error: Call to undefined method CachingIterator::load()

PHP Version

nightly

Operating System

ubuntu 22.04

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions