2008-10-24 20:17:50 +00:00
|
|
|
--TEST--
|
|
|
|
Bug #46381 (wrong $this passed to internal methods causes segfault)
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
|
|
|
|
class test {
|
2015-03-31 14:10:06 +00:00
|
|
|
public function method() {
|
2008-10-24 20:17:50 +00:00
|
|
|
return ArrayIterator::current();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$test = new test();
|
2015-03-31 14:10:06 +00:00
|
|
|
$test->method();
|
2008-10-24 20:17:50 +00:00
|
|
|
|
|
|
|
echo "Done\n";
|
|
|
|
?>
|
|
|
|
--EXPECTF--
|
2015-05-17 22:31:43 +00:00
|
|
|
Fatal error: Uncaught Error: Non-static method ArrayIterator::current() cannot be called statically in %s:%d
|
2015-05-15 19:04:07 +00:00
|
|
|
Stack trace:
|
|
|
|
#0 %s(%d): test->method()
|
|
|
|
#1 {main}
|
|
|
|
thrown in %s on line %d
|