|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-07-18 15:14 UTC] johannes@php.net
-Type: Security
+Type: Documentation Problem
[2013-07-18 15:14 UTC] johannes@php.net
[2013-07-18 16:11 UTC] markku dot niskanen at gmail dot com
[2013-08-03 15:55 UTC] ben dot rubson at gmail dot com
[2013-10-04 16:24 UTC] krakjoe@php.net
[2013-10-04 16:24 UTC] krakjoe@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: krakjoe
[2013-10-04 16:24 UTC] krakjoe@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 12:00:02 2025 UTC |
Description: ------------ NOTE: If this is a feature and not a bug it should be in the documentation. Using domain specific php.ini disable_functions setting does not work. Using the settings below I can still run phpinfo(). I can actually see that the settings should prevent me running it as they are there! The master value of disable_functions is an empty string. When the setting is applied as a master value it prevents running the functions correctly. Tested with Centos 6.2 & Centos 5.4 and PHP 5.5.0 (php-fpm). Test script: --------------- # php.ini settings: # end of php.ini std stuff, host specific stuff starts [HOST=testdomain.com] upload_max_filesize=7M disable_functions=phpinfo,exec,shell_exec,system,passthru code: <?php phpinfo(); echo exec('whoami'); Expected result: ---------------- (empty page) Actual result: -------------- FULL phpinfo() page plus the user name! result copied from browser : disable_functions phpinfo,exec,shell_exec,system,passthru upload_max_filesize 7M So the settings are there but not working.