]> granicus.if.org Git - php/commitdiff
- As expected (but told otherwise) unicode strings indeed need to be
authorMarcus Boerger <helly@php.net>
Fri, 3 Mar 2006 22:37:47 +0000 (22:37 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 3 Mar 2006 22:37:47 +0000 (22:37 +0000)
  terminated by two \0.

Zend/zend_API.c

index fdb6b932b46b3ac20b0ff98503ec243a796255d3..dc906762958b8aa6b213043102f00ae513e4fdd3 100644 (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;