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:
Tim Düsterhus 2022-04-13 21:39:40 +02:00 committed by GitHub
parent cfc38a6014
commit 8361098704
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)