#49065 [Opn->Ver]: "disable_functions" php.ini option does not work on Zend extensions

From: Date: Sun, 26 Jul 2009 19:06:56 +0000
Subject: #49065 [Opn->Ver]: "disable_functions" php.ini option does not work on Zend extensions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-140278@lists.php.net to get a copy of this message
ID: 49065 Updated by: jani@php.net Reported By: yoram dot b at zend dot com -Status: Open +Status: Verified Bug Type: Scripting Engine problem Operating System: * PHP Version: 5.*, 6SVN (2009-07-26) New Comment: Indeed. Maybe someone at Zend had a reason for that? Try asking around. :) Previous Comments: ------------------------------------------------------------------------ [2009-07-26 15:25:44] yoram dot b at zend dot com security hole, of course...) ------------------------------------------------------------------------ [2009-07-26 15:23:33] yoram dot b at zend dot com 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 this bug report at http://bugs.php.net/?id=49065&edit=1

« previous php.bugs (#140278) next »