cvs: ZendEngine2(PHP_5_3) / zend_API.c

[email protected] ("Marcus Boerger")
Newsgroups php.zend-engine.cvs
Message-ID <cvshelly1202409721@cvsserver>
helly		Thu Feb  7 18:42:01 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /ZendEngine2	zend_API.c 
  Log:
  - MFH Simplify
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_API.c?r1=1.296.2.27.2.34.2.27&r2=1.296.2.27.2.34.2.28&diff_format=u
Index: ZendEngine2/zend_API.c
diff -u ZendEngine2/zend_API.c:1.296.2.27.2.34.2.27 ZendEngine2/zend_API.c:1.296.2.27.2.34.2.28
--- ZendEngine2/zend_API.c:1.296.2.27.2.34.2.27	Wed Feb  6 20:40:19 2008
+++ ZendEngine2/zend_API.c	Thu Feb  7 18:42:01 2008
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_API.c,v 1.296.2.27.2.34.2.27 2008/02/06 20:40:19 helly Exp $ */
+/* $Id: zend_API.c,v 1.296.2.27.2.34.2.28 2008/02/07 18:42:01 helly Exp $ */
 
 #include "zend.h"
 #include "zend_execute.h"
@@ -2366,9 +2366,7 @@
 		*ce_ptr = zend_fetch_class(Z_STRVAL_P(callable), clen, ZEND_FETCH_CLASS_AUTO | ZEND_FETCH_CLASS_SILENT TSRMLS_CC);
 		EG(scope) = last_scope;
 		if (!*ce_ptr) {
-			char *cname = estrndup(Z_STRVAL_P(callable), clen);
-			if (error) zend_spprintf(error, 0, "class '%s' not found", cname);
-			efree(cname);
+			if (error) zend_spprintf(error, 0, "class '%.*Z' not found", clen, callable);
 			return 0;
 		}
 		ftable = &(*ce_ptr)->function_table;
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.