|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2016-05-22 20:45 UTC] witekfl at gazeta dot pl
Description: ------------ phpinfo's disable_functions displays only first block of php_admin_value[disable_functions]. Test script: --------------- php_admin_value[disable_functions] = curl_init php_admin_value[disable_functions] = curl_close <?php phpinfo(); Expected result: ---------------- phpinfo in disable_functions displays curl_init, curl_close Actual result: -------------- curl_init PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 08:00:02 2025 UTC |
reproducible on 7.0.5 CLI as well: php -n -d "disable_functions=phpinfo" -d "disable_functions=exec" -r "phpinfo();echo exec('ls');" | grep disable_ disable_functions => exec => execIf you do php_admin_value[disable_functions]=sin php_admin_value[disable_functions]=cos php_admin_value[disable_functions]=tan what does phpinfo() say, what does ini_get("disable_functions") return, and which of those functions do/do not work?<?php error_reporting(E_ALL); echo 'disable_functions=', ini_get('disable_functions'), "\n"; echo 'sin(0)=', sin(0), "\n"; echo 'cos(0)=', cos(0), "\n"; echo 'tan(0)=', tan(0), "\n"; disable_functions=sin sin(0)= Warning: sin() has been disabled for security reasons in /home/www/v2.6.5/info.php on line 4 cos(0)= Warning: cos() has been disabled for security reasons in /home/www/v2.6.5/info.php on line 5 tan(0)= Warning: tan() has been disabled for security reasons in /home/www/v2.6.5/info.php on line 6