php-src/Zend/tests/bug78182.phpt
2020-07-10 21:05:28 +02:00

17 lines
311 B
PHP

--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