From 5d77a462f64ce18ddb8213ee91bd0ffac4c531bb Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Fri, 3 Mar 2006 22:37:47 +0000 Subject: [PATCH] - As expected (but told otherwise) unicode strings indeed need to be terminated by two \0. --- Zend/zend_API.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0