cvs: php4 /main output.c

From: Date: Sat, 17 May 2003 09:34:37 +0000
Subject: cvs: php4 /main output.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-20988@lists.php.net to get a copy of this message
wez Sat May 17 05:34:37 2003 EDT Modified files: /php4/main output.c Log: Fix segfault Index: php4/main/output.c diff -u php4/main/output.c:1.157 php4/main/output.c:1.158 --- php4/main/output.c:1.157 Fri May 16 15:08:13 2003 +++ php4/main/output.c Sat May 17 05:34:37 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: output.c,v 1.157 2003/05/16 19:08:13 wez Exp $ */ +/* $Id: output.c,v 1.158 2003/05/17 09:34:37 wez Exp $ */ #include "php.h" #include "ext/standard/head.h" @@ -408,7 +408,7 @@ */ static int php_ob_init_named(uint initial_size, uint block_size, char *handler_name, zval *output_handler, uint chunk_size, zend_bool erase TSRMLS_DC) { - if (!zend_is_callable(output_handler, 0, NULL)) { + if (output_handler && !zend_is_callable(output_handler, 0, NULL)) { return FAILURE; } if (OG(ob_nesting_level)>0) {

« previous php.cvs (#20988) next »