Skip to content

Commit deb6ef1

Browse files
committed
main: duplicate PG(output_handler) zstr
As it may originated from persistent storage if it was defined in an INI file
1 parent 7b78eb4 commit deb6ef1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1884,7 +1884,7 @@ zend_result php_request_startup(void)
18841884
if (PG(output_handler)) {
18851885
zval oh;
18861886

1887-
ZVAL_STR_COPY(&oh, PG(output_handler));
1887+
ZVAL_STR(&oh, zend_string_dup(PG(output_handler), false));
18881888
php_output_start_user(&oh, 0, PHP_OUTPUT_HANDLER_STDFLAGS);
18891889
zval_ptr_dtor(&oh);
18901890
} else if (PG(output_buffering)) {

0 commit comments

Comments
 (0)