cvs: ZendEngine2 / zend_API.c

From: Date: Fri, 03 Mar 2006 22:37:47 +0000
Subject: cvs: ZendEngine2 / zend_API.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4651@lists.php.net to get a copy of this message
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;

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