Skip to content

Commit 49bb245

Browse files
committed
no need to copy the string as the write property hook handles it
1 parent b758c27 commit 49bb245

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main/streams/stream_errors.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ static void php_stream_throw_exception_with_errors(const php_stream_error_operat
370370

371371
/* Set message from first error */
372372
zend_update_property_str(php_ce_stream_exception, Z_OBJ(ex), ZEND_STRL("message"),
373-
zend_string_copy(op->first_error->message));
373+
op->first_error->message);
374374

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

0 commit comments

Comments
 (0)