mirror of
https://github.com/php/php-src.git
synced 2026-04-30 03:33:17 +02:00
ff4b0ce0e8
Don't def non-cv variables in assign_obj_ref data operand.
22 lines
292 B
PHP
22 lines
292 B
PHP
--TEST--
|
|
Bug #78034: "pecl" tool fails with abort assertion in zend_ssa.c
|
|
--FILE--
|
|
<?php
|
|
|
|
function &ref() {}
|
|
|
|
class Test {
|
|
function method($bool) {
|
|
if (!$bool) {
|
|
$this->foo = &ref();
|
|
}
|
|
|
|
$this->foo = &ref();
|
|
}
|
|
}
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
===DONE===
|