]> granicus.if.org Git - php/commitdiff
fix #43973 (__autoload called with wrong classname when triggered by static callback)
authorAntony Dovgal <tony2001@php.net>
Wed, 30 Jan 2008 12:30:57 +0000 (12:30 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 30 Jan 2008 12:30:57 +0000 (12:30 +0000)
the issue was present only in HEAD
patch by Felipe

Zend/zend_execute_API.c

index a4a2183d76354c72e7eb7f6b402d7761daae0855..ee0fbaa62eb12a4c3a1be8d2822614d83a764694 100644 (file)
@@ -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;