xref: /PHP-7.4/Zend/tests/bug68148.phpt (revision 58f38977)
1--TEST--
2Bug #68148: $this is null inside include
3--FILE--
4<?php
5
6class Test {
7    public function method() {
8        eval('var_dump($this);');
9    }
10}
11
12(new Test)->method();
13
14?>
15--EXPECT--
16object(Test)#1 (0) {
17}
18