cvs: ZendEngine2(PHP_5_1) / zend_reflection_api.c /tests bug29268.phpt php-src NEWS

From: Date: Fri, 21 Oct 2005 08:03:28 +0000
Subject: cvs: ZendEngine2(PHP_5_1) / zend_reflection_api.c /tests bug29268.phpt php-src NEWS
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4272@lists.php.net to get a copy of this message
dmitry Fri Oct 21 04:03:28 2005 EDT Added files: (Branch: PHP_5_1) /ZendEngine2/tests bug29268.phpt Modified files: /php-src NEWS /ZendEngine2 zend_reflection_api.c Log: Fixed bug #29268 (__autoload() not called with Reflection->getClass()) http://cvs.php.net/diff.php/php-src/NEWS?r1=1.2027.2.147&r2=1.2027.2.148&ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.147 php-src/NEWS:1.2027.2.148 --- php-src/NEWS:1.2027.2.147 Thu Oct 20 05:47:01 2005 +++ php-src/NEWS Fri Oct 21 04:03:25 2005 @@ -15,6 +15,8 @@ - Fixed bug #31177 (menory leaks and corruption because of incorrect refcounting). (Dmitry) - Fixed bug #29983 (PHP does not explicitly set mime type & charset). (Ilia) +- Fixed bug #29268 (__autoload() not called with Reflection->getClass()). + (Dmitry) 17 Oct 2005, PHP 5.1 Release Candidate 3 - Fixed bug #34873 (Segmentation Fault on foreach in object). (Dmitry) http://cvs.php.net/diff.php/ZendEngine2/zend_reflection_api.c?r1=1.164.2.8&r2=1.164.2.9&ty=u Index: ZendEngine2/zend_reflection_api.c diff -u ZendEngine2/zend_reflection_api.c:1.164.2.8 ZendEngine2/zend_reflection_api.c:1.164.2.9 --- ZendEngine2/zend_reflection_api.c:1.164.2.8 Thu Oct 20 12:47:18 2005 +++ ZendEngine2/zend_reflection_api.c Fri Oct 21 04:03:26 2005 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_reflection_api.c,v 1.164.2.8 2005/10/20 16:47:18 tony2001 Exp $ */ +/* $Id: zend_reflection_api.c,v 1.164.2.9 2005/10/21 08:03:26 dmitry Exp $ */ #include "zend.h" #include "zend_API.h" #include "zend_exceptions.h" @@ -1740,15 +1740,12 @@ RETURN_NULL(); } else { zend_class_entry **pce; - char *lcname = do_alloca(param->arg_info->class_name_len + 1); - zend_str_tolower_copy(lcname, param->arg_info->class_name, param->arg_info->class_name_len); - if (zend_hash_find(EG(class_table), lcname, param->arg_info->class_name_len + 1, (void **) &pce) == FAILURE) { - free_alloca(lcname); + + if (zend_lookup_class_ex(param->arg_info->class_name, param->arg_info->class_name_len, 1, &pce TSRMLS_CC) == FAILURE) { zend_throw_exception_ex(reflection_exception_ptr, 0 TSRMLS_CC, "Class %s does not exist", param->arg_info->class_name); return; } - free_alloca(lcname); zend_reflection_class_factory(*pce, return_value TSRMLS_CC); } } http://cvs.php.net/co.php/ZendEngine2/tests/bug29268.phpt?r=1.1&p=1 Index: ZendEngine2/tests/bug29268.phpt +++ ZendEngine2/tests/bug29268.phpt

« previous php.zend-engine.cvs (#4272) next »