iliaa Wed Nov 6 19:23:58 2002 EDT
Modified files:
/php4/ext/standard head.c
Log:
Fixed a crash in headers_sent(), that occures if
php_get_output_start_filename() returns NULL.
Index: php4/ext/standard/head.c
diff -u php4/ext/standard/head.c:1.65 php4/ext/standard/head.c:1.66
--- php4/ext/standard/head.c:1.65 Tue Sep 17 09:54:40 2002
+++ php4/ext/standard/head.c Wed Nov 6 19:23:58 2002
@@ -15,7 +15,7 @@
| Author: Rasmus Lerdorf <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $Id: head.c,v 1.65 2002/09/17 13:54:40 hholzgra Exp $ */
+/* $Id: head.c,v 1.66 2002/11/07 00:23:58 iliaa Exp $ */
#include <stdio.h>
@@ -183,7 +183,11 @@
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;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php