xref: /PHP-7.4/Zend/tests/bug78531.phpt (revision 51d9f32d)
1--TEST--
2Bug #78531 (Crash when using undefined variable as object)
3--FILE--
4<?php
5@$u1->a += 5;
6var_dump($u1->a);
7@$x = ++$u2->a;
8var_dump($u2->a);
9@$x = $u3->a++;
10var_dump($u3->a);
11@$u4->a->a += 5;
12var_dump($u4->a->a);
13?>
14--EXPECT--
15int(5)
16int(1)
17int(1)
18int(5)