From: Marcus Boerger Date: Fri, 3 Mar 2006 22:37:47 +0000 (+0000) Subject: - As expected (but told otherwise) unicode strings indeed need to be X-Git-Tag: RELEASE_1_2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d77a462f64ce18ddb8213ee91bd0ffac4c531bb;p=php - As expected (but told otherwise) unicode strings indeed need to be terminated by two \0. --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index fdb6b932b4..dc90676295 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -2524,7 +2524,7 @@ static int zend_is_callable_check_func(int check_flags, zval ***zobj_ptr_ptr, ze *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;