cvs: ZendEngine2(PHP_5_0) / zend_builtin_functions.c

From: Date: Tue, 12 Oct 2004 09:16:18 +0000
Subject: cvs: ZendEngine2(PHP_5_0) / zend_builtin_functions.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3091@lists.php.net to get a copy of this message
helly Tue Oct 12 05:16:18 2004 EDT Modified files: (Branch: PHP_5_0) /ZendEngine2 zend_builtin_functions.c Log: MFH (add missing check) http://cvs.php.net/diff.php/ZendEngine2/zend_builtin_functions.c?r1=1.239.2.8&r2=1.239.2.9&ty=u Index: ZendEngine2/zend_builtin_functions.c diff -u ZendEngine2/zend_builtin_functions.c:1.239.2.8 ZendEngine2/zend_builtin_functions.c:1.239.2.9 --- ZendEngine2/zend_builtin_functions.c:1.239.2.8 Tue Oct 12 05:14:55 2004 +++ ZendEngine2/zend_builtin_functions.c Tue Oct 12 05:16:17 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_builtin_functions.c,v 1.239.2.8 2004/10/12 09:14:55 helly Exp $ */ +/* $Id: zend_builtin_functions.c,v 1.239.2.9 2004/10/12 09:16:17 helly Exp $ */ #include "zend.h" #include "zend_API.h" @@ -1731,6 +1731,11 @@ /* i know this is kinda ugly, but i'm trying to avoid extra cycles in the main execution loop */ zend_bool build_filename_arg = 1; + if (!ptr->opline) { + /* can happen when calling eval from a custom sapi */ + function_name = "unknown"; + build_filename_arg = 0; + } else switch (ptr->opline->op2.u.constant.value.lval) { case ZEND_EVAL: function_name = "eval";

« previous php.zend-engine.cvs (#3091) next »