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