1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00

- As expected (but told otherwise) unicode strings indeed need to be

terminated by two \0.
This commit is contained in:
Marcus Boerger
2006-03-03 22:37:47 +00:00
parent a9ea7e81c6
commit 5d77a462f6
+1 -1
View File
@@ -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;