[php-src] master: streams: use zend string property update function (#22903)
| From: | Gina Peter Banyard via GitHub | Date: | Tue, 28 Jul 2026 07:48:54 +0000 |
| Subject: | [php-src] master: streams: use zend string property update function (#22903) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-140243@lists.php.net to get a copy of this message | ||
Author: Gina Peter Banyard (Girgias)
Committer: GitHub (web-flow)
Pusher: Girgias
Date: 2026-07-28T08:48:51+01:00
Commit: https://github.com/php/php-src/commit/18cc854f300e125b0c2e8f1575ac18cc006d1dd2
Raw diff: https://github.com/php/php-src/commit/18cc854f300e125b0c2e8f1575ac18cc006d1dd2.diff
streams: use zend string property update function (#22903)
Instead of the char* version
Changed paths:
M main/streams/stream_errors.c
Diff:
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"),