Skip to content

Commit

Permalink
Use zend_update_property to set SensitiveParameterValue::$value
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWolla committed Apr 13, 2022
1 parent 28ae065 commit 5f6a272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Zend/zend_attributes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5f6a272

Please sign in to comment.