php-src/Zend/tests/this_in_eval.phpt
2015-09-23 23:16:30 +03:00

19 lines
210 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) {
}