xref: /php-src/Zend/tests/this_in_eval.phpt (revision 7aacc705)
1--TEST--
2$this in eval() block
3--FILE--
4<?php
5class C {
6    function foo() {
7        eval('var_dump($this);');
8        eval('var_dump($this);');
9    }
10}
11$x = new C;
12$x->foo();
13?>
14--EXPECT--
15object(C)#1 (0) {
16}
17object(C)#1 (0) {
18}
19