mirror of
https://github.com/php/php-src.git
synced 2025-01-22 11:44:09 +08:00
commit
4e66e6a73a
2
NEWS
2
NEWS
@ -13,6 +13,8 @@ PHP NEWS
|
||||
the process). (Calvin Buckley)
|
||||
. Fixed bug #73630 (Built-in Weberver - overwrite $_SERVER['request_uri']).
|
||||
(cmb)
|
||||
. Fixed bug #80173 (Using return value of zend_assign_to_variable() is not
|
||||
safe). (Nikita)
|
||||
|
||||
- Intl:
|
||||
. Fixed bug #72809 (Locale::lookup() wrong result with canonicalize option).
|
||||
|
12
Zend/tests/write_property_ref_overwrite_return.phpt
Normal file
12
Zend/tests/write_property_ref_overwrite_return.phpt
Normal file
@ -0,0 +1,12 @@
|
||||
--TEST--
|
||||
Using return of property assignment to reference that destroys object
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$a = new stdClass;
|
||||
$a->a =& $a;
|
||||
var_dump($a->a = 0);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
int(0)
|
@ -723,7 +723,8 @@ ZEND_API zval *zend_std_write_property(zend_object *zobj, zend_string *name, zva
|
||||
}
|
||||
|
||||
found:
|
||||
zend_assign_to_variable(variable_ptr, value, IS_TMP_VAR, property_uses_strict_types());
|
||||
variable_ptr = zend_assign_to_variable(
|
||||
variable_ptr, value, IS_TMP_VAR, property_uses_strict_types());
|
||||
goto exit;
|
||||
}
|
||||
if (Z_PROP_FLAG_P(variable_ptr) == IS_PROP_UNINIT) {
|
||||
|
Loading…
Reference in New Issue
Block a user