php-src/Zend/tests/this_in_eval.phpt
2020-08-09 22:03:36 +02:00

19 lines
230 B
PHP

--TEST--
$this in eval() block
--FILE--
<?php
class C {
function foo() {
eval('var_dump($this);');
eval('var_dump($this);');
}
}
$x = new C;
$x->foo();
?>
--EXPECT--
object(C)#1 (0) {
}
object(C)#1 (0) {
}