mirror of
https://github.com/php/php-src.git
synced 2024-12-16 21:37:49 +08:00
7aacc705d0
Closes GH-5958
19 lines
230 B
PHP
19 lines
230 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) {
|
|
}
|