cvs: ZendEngine2(PHP_5_3) / zend_API.c

[email protected] ("Rasmus Lerdorf")
Newsgroups php.zend-engine.cvs
Message-ID <cvsrasmus1201914721@cvsserver>
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;
 	}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.