1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 03:32:20 +02:00
Files
archived-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) {
}