Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c
Just use EMPTY_STR. It's defined in zend.h
-Andrei
On Mar 3, 2006, at 2:37 PM, Marcus Boerger wrote:
helly Fri Mar 3 22:37:47 2006 UTC
Modified files:
/ZendEngine2 zend_API.c
Log:
- As expected (but told otherwise) unicode strings indeed need to be
terminated by two \0.
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_API.c?r1=1.350&r2=1.351&diff_format=u
Index: ZendEngine2/zend_API.c
diff -u ZendEngine2/zend_API.c:1.350 ZendEngine2/zend_API.c:1.351
--- ZendEngine2/zend_API.c:1.350 Wed Mar 1 16:15:15 2006
+++ ZendEngine2/zend_API.c Fri Mar 3 22:37:47 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_API.c,v 1.350 2006/03/01 16:15:15 helly Exp $ */
+/* $Id: zend_API.c,v 1.351 2006/03/03 22:37:47 helly Exp $ */
#include "zend.h"
#include "zend_execute.h"
@@ -2524,7 +2524,7 @@
*fptr_ptr = NULL;
if (Z_TYPE_P(callable) == IS_UNICODE) {
- if ((colon.u = u_strstr(Z_USTRVAL_P(callable), (UChar*)":\0:\0")) != NULL) {
+ if ((colon.u = u_strstr(Z_USTRVAL_P(callable), (UChar*)":\0:\0\0")) != NULL) {
mlen = u_strlen(colon.u+2);
clen = Z_USTRLEN_P(callable) - mlen - 2;
mname.u = colon.u + 2;
--Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit:
http://www.php.net/unsub.php
Thread (2 messages)