summaryrefslogtreecommitdiff
path: root/Zend/tests/this_in_eval.phpt
blob: a499d8ac7629e175b06e4ffc3bd56320b1876cd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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) {
}