mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix indirect readonly error messages (#14979)
$obj->ro[] = 42;, passByRef($obj->ro); and the likes should emit an indirect modification error message. This message already existed but was used inconsistently.
This commit is contained in:
parent
71c520c74f
commit
fdbe910b3b
11 changed files with 28 additions and 28 deletions
|
@ -3367,7 +3367,7 @@ static zend_always_inline void zend_fetch_property_address(zval *result, zval *c
|
|||
} else if (Z_PROP_FLAG_P(ptr) & IS_PROP_REINITABLE) {
|
||||
Z_PROP_FLAG_P(ptr) &= ~IS_PROP_REINITABLE;
|
||||
} else {
|
||||
zend_readonly_property_modification_error(prop_info);
|
||||
zend_readonly_property_indirect_modification_error(prop_info);
|
||||
ZVAL_ERROR(result);
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue