- Core:
. Fixed bug #73370 (falsely exits with "Out of Memory" when using
USE_ZEND_ALLOC=0). (Nikita)
+ . Fixed bug #73960 (Leak with instance method calling static method with
+ referenced return). (Nikita)
- Date:
. Fixed bug #72096 (Swatch time value incorrect for dates before 1970). (mcq8)
--- /dev/null
+--TEST--
+Bug #73960: Leak with instance method calling static method with referenced return
+--FILE--
+<?php
+
+$value = 'one';
+$array = array($value);
+$array = $ref =& $array;
+var_dump($array);
+
+?>
+--EXPECT--
+array(1) {
+ [0]=>
+ string(3) "one"
+}
return variable_ptr;
}
if (ZEND_CONST_COND(value_type & (IS_VAR|IS_CV), 1) && variable_ptr == value) {
+ if (value_type == IS_VAR && ref) {
+ ZEND_ASSERT(GC_REFCOUNT(ref) > 1);
+ --GC_REFCOUNT(ref);
+ }
return variable_ptr;
}
garbage = Z_COUNTED_P(variable_ptr);