cvs: pecl /bcompiler bcompiler.c

From: Date: Wed, 06 Apr 2005 07:54:48 +0000
Subject: cvs: pecl /bcompiler bcompiler.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-2930@lists.php.net to get a copy of this message
val Wed Apr 6 03:54:48 2005 EDT Modified files: /pecl/bcompiler bcompiler.c Log: fix a crash when compiling a non-existant source file (bug #4050) http://cvs.php.net/diff.php/pecl/bcompiler/bcompiler.c?r1=1.83&r2=1.84&ty=u Index: pecl/bcompiler/bcompiler.c diff -u pecl/bcompiler/bcompiler.c:1.83 pecl/bcompiler/bcompiler.c:1.84 --- pecl/bcompiler/bcompiler.c:1.83 Thu Mar 31 13:26:13 2005 +++ pecl/bcompiler/bcompiler.c Wed Apr 6 03:54:46 2005 @@ -20,7 +20,7 @@ | Mike Bretz <mike@metropolis-ag.de> | +----------------------------------------------------------------------+ */ -/* $Id: bcompiler.c,v 1.83 2005/03/31 18:26:13 val Exp $ */ +/* $Id: bcompiler.c,v 1.84 2005/04/06 07:54:46 val Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -875,6 +875,11 @@ /* compile (as include) */ op_array = bcompiler_saved_zend_compile_file(&file_handle, ZEND_INCLUDE/*type*/ TSRMLS_CC); zend_destroy_file_handle(&file_handle TSRMLS_CC); + /* check for errors */ + if (!op_array) { + efree(real_path); + RETURN_FALSE; + } /* following line will execute just compiled script */ /*zend_execute(op_array TSRMLS_CC);*/

« previous php.pecl.cvs (#2930) next »