From 924053e91235f7033da2cd342d67d5836301a6e8 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Mon, 27 Jul 2026 20:23:18 +0100 Subject: [PATCH] streams: use zend string property update function Instead of the char* version --- main/streams/stream_errors.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/streams/stream_errors.c b/main/streams/stream_errors.c index 067a604af787..40056f0856e7 100644 --- a/main/streams/stream_errors.c +++ b/main/streams/stream_errors.c @@ -385,8 +385,8 @@ static void php_stream_throw_exception_with_errors(php_stream_error_operation *o object_init_ex(&ex, php_ce_stream_exception); /* Set message from first error */ - zend_update_property_string(php_ce_stream_exception, Z_OBJ(ex), ZEND_STRL("message"), - ZSTR_VAL(op->first_error->message)); + zend_update_property_str(php_ce_stream_exception, Z_OBJ(ex), ZEND_STRL("message"), + op->first_error->message); /* Set code from first error */ zend_update_property_long(php_ce_stream_exception, Z_OBJ(ex), ZEND_STRL("code"),