xref: /PHP-7.4/Zend/tests/this_in_eval.phpt (revision d679f022)
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--EXPECT--
14object(C)#1 (0) {
15}
16object(C)#1 (0) {
17}
18