mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
18 lines
213 B
Plaintext
18 lines
213 B
Plaintext
|
--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) {
|
||
|
}
|