mirror of
https://github.com/php/php-src.git
synced 2024-12-14 04:16:30 +08:00
d30cd7d7e7
Closes GH-5590
17 lines
311 B
PHP
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
|