cvs: php4 /main output.c

From: Date: Fri, 01 Mar 2002 09:29:33 +0000
Subject: cvs: php4 /main output.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-9531@lists.php.net to get a copy of this message
yohgaki Fri Mar 1 04:29:33 2002 EDT Modified files: /php4/main output.c Log: Do explicit test againt to FAILURE. # Thanks Rasmus. Index: php4/main/output.c diff -u php4/main/output.c:1.85 php4/main/output.c:1.86 --- php4/main/output.c:1.85 Thu Feb 28 22:05:50 2002 +++ php4/main/output.c Fri Mar 1 04:29:32 2002 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: output.c,v 1.85 2002/03/01 03:05:50 yohgaki Exp $ */ +/* $Id: output.c,v 1.86 2002/03/01 09:29:32 yohgaki Exp $ */ #include "php.h" #include "ext/standard/head.h" @@ -654,9 +654,10 @@ zval *elem; MAKE_STD_ZVAL(elem); - if (array_init(elem)) + if (array_init(elem) == FAILURE) { return FAILURE; - + } + if (ob_buffer->internal_output_handler) { add_assoc_long(elem, "type", PHP_OUTPUT_HANDLER_INTERNAL); }

« previous php.cvs (#9531) next »