From: Antony Dovgal Date: Wed, 30 Jan 2008 12:30:57 +0000 (+0000) Subject: fix #43973 (__autoload called with wrong classname when triggered by static callback) X-Git-Tag: RELEASE_2_0_0a1~693 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dbd82ddf192cd828e803f985dbcc53bb4a8875b7;p=php fix #43973 (__autoload called with wrong classname when triggered by static callback) the issue was present only in HEAD patch by Felipe --- diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index a4a2183d76..ee0fbaa62e 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -1297,7 +1297,7 @@ ZEND_API int zend_u_lookup_class_ex(zend_uchar type, zstr name, int name_length, ALLOC_ZVAL(class_name_ptr); INIT_PZVAL(class_name_ptr); - ZVAL_ZSTR(class_name_ptr, type, autoload_name, 1); + ZVAL_ZSTRL(class_name_ptr, type, autoload_name, lc_name_len, 1); args[0] = &class_name_ptr;