php-src/Zend/tests/bug68148.phpt
2014-10-05 23:38:59 +02:00

18 lines
213 B
PHP

--TEST--
Bug #68148: $this is null inside include
--FILE--
<?php
class Test {
public function method() {
eval('var_dump($this);');
}
}
(new Test)->method();
?>
--EXPECT--
object(Test)#1 (0) {
}