mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
58f389772f
Fixes bug #68148
18 lines
213 B
PHP
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) {
|
|
}
|