#49065 [NEW]: disable_functions does not work on zend_extensions
| From: | yoram dot b at zend dot com | Date: | Sun, 26 Jul 2009 15:23:34 +0000 |
| Subject: | #49065 [NEW]: disable_functions does not work on zend_extensions | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-140270@lists.php.net to get a copy of this message | ||
From: yoram dot b at zend dot com
Operating system: All
PHP version: 5.3.0
PHP Bug Type: Dynamic loading
Bug description: disable_functions does not work on zend_extensions
Description:
------------
that is actually easy, in main.c :
1991 php_ini_register_extensions(TSRMLS_C);
1992 zend_startup_modules(TSRMLS_C);
1993
1994 /* disable certain classes and functions as requested by php.ini
*/
1995 php_disable_functions(TSRMLS_C);
1996 php_disable_classes(TSRMLS_C);
1997
1998 /* start Zend extensions */
1999 zend_startup_extensions();
As you can see, zend_extensions are started after php_disable_functions()
That might be a security whole, at list when not documented.
--
Edit bug report at http://bugs.php.net/?id=49065&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49065&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49065&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49065&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=49065&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49065&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=49065&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=49065&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=49065&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=49065&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=49065&r=support
Expected behavior: http://bugs.php.net/fix.php?id=49065&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=49065&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=49065&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=49065&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49065&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49065&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=49065&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=49065&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=49065&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=49065&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=49065&r=mysqlcfg