Bug #62744 [NEW]: Wild pointers made by zend_disable_class
| From: | laruence@php.net | Date: | Sat, 04 Aug 2012 02:29:16 +0000 |
| Subject: | Bug #62744 [NEW]: Wild pointers made by zend_disable_class | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-172430@lists.php.net to get a copy of this message | ||
From: laruence
Operating system:
PHP version: 5.3.15
Package: Scripting Engine problem
Bug Type: Bug
Bug description:Wild pointers made by zend_disable_class
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 bug report at https://bugs.php.net/bug.php?id=62744&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62744&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62744&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62744&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=62744&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62744&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=62744&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=62744&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=62744&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=62744&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=62744&r=support
Expected behavior: https://bugs.php.net/fix.php?id=62744&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=62744&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=62744&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=62744&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62744&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62744&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=62744&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=62744&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=62744&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=62744&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=62744&r=mysqlcfg