Browse Source

add test

PECL
Antony Dovgal 18 years ago
parent
commit
73f81e9df6
  1. 19
      Zend/tests/bug46381.phpt

19
Zend/tests/bug46381.phpt

@ -0,0 +1,19 @@
--TEST--
Bug #46381 (wrong $this passed to internal methods causes segfault)
--SKIPIF--
<?php if (!extension_loaded("spl")) die("skip SPL is no available"); ?>
--FILE--
<?php
class test {
public function test() {
return ArrayIterator::current();
}
}
$test = new test();
$test->test();
echo "Done\n";
?>
--EXPECTF--
Fatal error: Non-static method ArrayIterator::current() cannot be called statically, assuming $this from incompatible context in %s on line %d
Loading…
Cancel
Save