#28784 [Csd->Bgs]: php.ini: disable_functions does not work at all
| From: | derick@php.net | Date: | Tue, 15 Jun 2004 07:10:38 +0000 |
| Subject: | #28784 [Csd->Bgs]: php.ini: disable_functions does not work at all | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-60927@lists.php.net to get a copy of this message | ||
ID: 28784
Updated by: derick@php.net
Reported By: dietrich dot ayala at foundstone dot com
-Status: Closed
+Status: Bogus
Bug Type: *Configuration Issues
Operating System: windows xp
PHP Version: 4.3.7
New Comment:
User error -> Bogus
Previous Comments:
------------------------------------------------------------------------
[2004-06-14 23:57:32] dietrich dot ayala at foundstone dot com
user error. i have several versions of php on this box, and updated the
wrong php.ini.
sorry for the inconvenience, please close.
------------------------------------------------------------------------
[2004-06-14 23:48:12] sesser@php.net
Please double check the position of php.ini or if you made any typo in
it.
disable_functions works fine here on linux and windows.
------------------------------------------------------------------------
[2004-06-14 23:18:57] dietrich dot ayala at foundstone dot com
Description:
------------
os: winxp
webserver: iis/fastcgi
i set the disable_functions option in php.ini to a value of:
call_user_func_array
then i restart iis, make sure no php.exe instances are running.
then i try my repro code below, and it works fine. it should not let me
use this function.
Reproduce code:
---------------
<?php
function test($arg)
{
echo $arg;
}
$arr = array('hello world');
call_user_func_array('test', $arr);
?>
Expected result:
----------------
should not let the user use the call_user_func_array function
Actual result:
--------------
prints "hello world"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28784&edit=1