cvs: ZendEngine2(PHP_5_3) / zend_API.c

From: Date: Sat, 02 Feb 2008 01:12:01 +0000
Subject: cvs: ZendEngine2(PHP_5_3) / zend_API.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-6339@lists.php.net to get a copy of this message
rasmus Sat Feb 2 01:12:01 2008 UTC Modified files: (Branch: PHP_5_3) /ZendEngine2 zend_API.c Log: What's the [0] for here? Looks wrong and causes stuff to segv http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_API.c?r1=1.296.2.27.2.34.2.19&r2=1.296.2.27.2.34.2.20&diff_format=u Index: ZendEngine2/zend_API.c diff -u ZendEngine2/zend_API.c:1.296.2.27.2.34.2.19 ZendEngine2/zend_API.c:1.296.2.27.2.34.2.20 --- ZendEngine2/zend_API.c:1.296.2.27.2.34.2.19 Fri Feb 1 23:09:10 2008 +++ ZendEngine2/zend_API.c Sat Feb 2 01:12:01 2008 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_API.c,v 1.296.2.27.2.34.2.19 2008/02/01 23:09:10 rasmus Exp $ */ +/* $Id: zend_API.c,v 1.296.2.27.2.34.2.20 2008/02/02 01:12:01 rasmus Exp $ */ #include "zend.h" #include "zend_execute.h" @@ -2376,7 +2376,7 @@ *ce_ptr = ce_org; } else { /* We already checked for plain function before. */ - if (error) zend_spprintf(error, 0, "function '%s' not found or invalid function name", Z_STRVAL_P(callable)[0]); + if (error) zend_spprintf(error, 0, "function '%s' not found or invalid function name", Z_STRVAL_P(callable)); return 0; }

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