mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
Use zend_update_property
to set SensitiveParameterValue::$value
(#8365)
see https://github.com/php/php-src/issues/8351#issuecomment-1098284745
This commit is contained in:
parent
cfc38a6014
commit
8361098704
@ -109,7 +109,7 @@ ZEND_METHOD(SensitiveParameterValue, __construct)
|
||||
Z_PARAM_ZVAL(value)
|
||||
ZEND_PARSE_PARAMETERS_END();
|
||||
|
||||
ZVAL_COPY(OBJ_PROP_NUM(Z_OBJ_P(ZEND_THIS), 0), value);
|
||||
zend_update_property(zend_ce_sensitive_parameter_value, Z_OBJ_P(ZEND_THIS), "value", strlen("value"), value);
|
||||
}
|
||||
|
||||
ZEND_METHOD(SensitiveParameterValue, getValue)
|
||||
|
Loading…
Reference in New Issue
Block a user