Skip to content

Commit d6a18a7

Browse files
committed
Properly handle NULL output start filename
1 parent 97202d9 commit d6a18a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/output.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ PHPAPI void php_output_set_implicit_flush(int flush)
758758
* Get the file name where output has started */
759759
PHPAPI const char *php_output_get_start_filename(void)
760760
{
761-
return ZSTR_VAL(OG(output_start_filename_str));
761+
return OG(output_start_filename_str) ? ZSTR_VAL(OG(output_start_filename_str)) : NULL;
762762
}
763763
/* }}} */
764764

0 commit comments

Comments
 (0)