From: foobar Date: Sat, 22 Jul 2006 15:41:42 +0000 (+0000) Subject: MFH:- Fixed bug #38183 (disable_classes=Foobar causes disabled class to be called... X-Git-Tag: php-5.2.0RC1~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b8ad5a0afe8a5b8e612e7a758f61fb854f8841c;p=php MFH:- Fixed bug #38183 (disable_classes=Foobar causes disabled class to be called Foo) --- diff --git a/NEWS b/NEWS index c24c4c2b26..95b4a328e6 100644 --- a/NEWS +++ b/NEWS @@ -101,6 +101,8 @@ PHP NEWS - Fixed memory leaks in openssl streams context options. (Pierre) - Fixed handling of extremely long paths inside tempnam() function. (Ilia) +- Fixed bug #38183 (disable_classes=Foobar causes disabled class to be + called Foo). (Jani) - Fixed bug #38125 (undefined reference to spl_dual_it_free_storage). (Marcus) - Fixed bug #38086 (stream_copy_to_stream() returns 0 when maxlen is bigger than the actual length). (Tony) diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 3d84ec8b34..7a4b78bb20 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -2104,6 +2104,7 @@ ZEND_API int zend_disable_class(char *class_name, uint class_name_length TSRMLS_ } INIT_CLASS_ENTRY((*disabled_class), class_name, disabled_class_new); disabled_class->create_object = display_disabled_class; + disabled_class->name_length = class_name_length; zend_register_internal_class(disabled_class TSRMLS_CC); return 1; }