xref: /PHP-7.4/Zend/tests/bug78182.phpt (revision 268b5fec)
1--TEST--
2Bug #78182: Segmentation fault during by-reference property assignment
3--FILE--
4<?php
5$varName = 'var';
6$propName = 'prop';
7$$varName->$propName =& $$varName;
8var_dump($var);
9?>
10--EXPECTF--
11Warning: Creating default object from empty value in %s on line %d
12object(stdClass)#1 (1) {
13  ["prop"]=>
14  *RECURSION*
15}
16