cvs: php4 /main main.c

From: Date: Wed, 21 Feb 2001 20:50:49 +0000
Subject: cvs: php4 /main main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-4191@lists.php.net to get a copy of this message
shane Wed Feb 21 12:50:49 2001 EDT Modified files: /php4/main main.c Log: zend_compile_file returns a NULL on error, check for that before calling destroy_op_array unless we like crashes :-) Index: php4/main/main.c diff -u php4/main/main.c:1.350 php4/main/main.c:1.351 --- php4/main/main.c:1.350 Tue Feb 20 17:43:15 2001 +++ php4/main/main.c Wed Feb 21 12:50:49 2001 @@ -19,7 +19,7 @@ */ -/* $Id: main.c,v 1.350 2001/02/21 01:43:15 hholzgra Exp $ */ +/* $Id: main.c,v 1.351 2001/02/21 20:50:49 shane Exp $ */ #include <stdio.h> @@ -1263,7 +1263,8 @@ op_array = zend_compile_file(file, ZEND_INCLUDE CLS_CC); retval = (op_array?SUCCESS:FAILURE); - destroy_op_array(op_array); + /* SMC op_array may be NULL */ + if (op_array != NULL) destroy_op_array(op_array); return retval; }

« previous php.cvs (#4191) next »