Bug #62744 [Asn->Csd]: dangling pointers made by zend_disable_class
| From: | laruence@php.net | Date: | Sun, 12 Aug 2012 02:33:01 +0000 |
| Subject: | Bug #62744 [Asn->Csd]: dangling pointers made by zend_disable_class | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-172549@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62744&edit=1
ID: 62744
Updated by: laruence@php.net
Reported by: laruence@php.net
Summary: dangling pointers made by zend_disable_class
-Status: Assigned
+Status: Closed
Type: Bug
Package: Scripting Engine problem
PHP Version: 5.3.15
Assigned To: laruence
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2012-08-11 20:34:03] felipe@php.net
Have it been already fixed?
------------------------------------------------------------------------
[2012-08-04 03:27:39] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=03a1fcabf31210d3f304bfacf5096ce43c2b8f93
Log: Fixed bug #62744 (dangling pointers made by zend_disable_class)
------------------------------------------------------------------------
[2012-08-04 03:24:36] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=03a1fcabf31210d3f304bfacf5096ce43c2b8f93
Log: Fixed bug #62744 (dangling pointers made by zend_disable_class)
------------------------------------------------------------------------
[2012-08-04 02:41:52] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=03a1fcabf31210d3f304bfacf5096ce43c2b8f93
Log: Fixed bug #62744 (dangling pointers made by zend_disable_class)
------------------------------------------------------------------------
[2012-08-04 02:29:16] laruence@php.net
Description:
------------
this bug is found by digging bug #62737
Extensions use zend_register_internal_class to register class, and they often
preserved the return value and reuse that pointer instead of search in class table
when that class will be used.
but when user specific disable_classes in php.ini
zend_disable_class will delete the corresponding class entry, then make the
pointer which is preserved by extension become a wild pointer.
http://lxr.php.net/xref/PHP_5_3/Zend/zend_API.c#2348
Test script:
---------------
similar as #62733
Expected result:
----------------
none
Actual result:
--------------
none
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62744&edit=1