Skip to content

Commit 18cc854

Browse files
authored
streams: use zend string property update function (#22903)
Instead of the char* version
1 parent c5cdea5 commit 18cc854

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main/streams/stream_errors.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,8 @@ static void php_stream_throw_exception_with_errors(php_stream_error_operation *o
385385
object_init_ex(&ex, php_ce_stream_exception);
386386

387387
/* Set message from first error */
388-
zend_update_property_string(php_ce_stream_exception, Z_OBJ(ex), ZEND_STRL("message"),
389-
ZSTR_VAL(op->first_error->message));
388+
zend_update_property_str(php_ce_stream_exception, Z_OBJ(ex), ZEND_STRL("message"),
389+
op->first_error->message);
390390

391391
/* Set code from first error */
392392
zend_update_property_long(php_ce_stream_exception, Z_OBJ(ex), ZEND_STRL("code"),

0 commit comments

Comments
 (0)