cvs: php4 /ext/standard head.c

From: Date: Thu, 07 Nov 2002 00:23:58 +0000
Subject: cvs: php4 /ext/standard head.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-15866@lists.php.net to get a copy of this message
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 <rasmus@lerdorf.on.ca> | +----------------------------------------------------------------------+ */ -/* $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; }

« previous php.cvs (#15866) next »