diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2002-11-07 00:23:58 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2002-11-07 00:23:58 +0000 |
| commit | b801568bbb7507f3ba5f3f24e6ee37a7409d11d7 (patch) | |
| tree | 559e9a38acc4879905d26738bde4db6ad755e389 | |
| parent | bab84eab34841f7eb99b486e127ac9d54d1ff86d (diff) | |
| download | php-git-b801568bbb7507f3ba5f3f24e6ee37a7409d11d7.tar.gz | |
Fixed a crash in headers_sent(), that occures if
php_get_output_start_filename() returns NULL.
| -rw-r--r-- | ext/standard/head.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/standard/head.c b/ext/standard/head.c index 87994bc369..6223ea8d93 100644 --- a/ext/standard/head.c +++ b/ext/standard/head.c @@ -183,7 +183,11 @@ PHP_FUNCTION(headers_sent) ZVAL_LONG(arg2, line); case 1: zval_dtor(arg1); - ZVAL_STRING(arg1, file, 1); + if (file) { + ZVAL_STRING(arg1, file, 1); + } else { + ZVAL_STRING(arg1, "", 1); + } break; } |
