mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +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
|