xref: /php-src/Zend/tests/bug78182.phpt (revision d30cd7d7)
1--TEST--
2Bug #78182: Segmentation fault during by-reference property assignment
3--FILE--
4<?php
5$varName = 'var';
6$propName = 'prop';
7try {
8    $$varName->$propName =& $$varName;
9} catch (Error $e) {
10    echo $e->getMessage(), "\n";
11}
12var_dump($var);
13?>
14--EXPECT--
15Attempt to modify property "prop" on null
16NULL
17