summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-10-16 18:38:03 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-10-16 18:38:03 +0200
commitd6a18a773899d07750b30082b5f5ce36aa3c70df (patch)
tree88ff6fa888bfb41ae9ec1e93e6423fa4a118359f
parent97202d9d8401ce88b65d604df1f45af43c9a04a1 (diff)
downloadphp-git-d6a18a773899d07750b30082b5f5ce36aa3c70df.tar.gz
Properly handle NULL output start filename
-rw-r--r--main/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/output.c b/main/output.c
index cffadede80..d155123834 100644
--- a/main/output.c
+++ b/main/output.c
@@ -758,7 +758,7 @@ PHPAPI void php_output_set_implicit_flush(int flush)
* Get the file name where output has started */
PHPAPI const char *php_output_get_start_filename(void)
{
- return ZSTR_VAL(OG(output_start_filename_str));
+ return OG(output_start_filename_str) ? ZSTR_VAL(OG(output_start_filename_str)) : NULL;
}
/* }}} */