Bug #77687 [Com]: failed disable function ini_get() using php.ini

From: Date: Fri, 01 Mar 2019 10:12:42 +0000
Subject: Bug #77687 [Com]: failed disable function ini_get() using php.ini
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-219790@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77687&edit=1 ID: 77687 Comment by: spam2 at rhsoft dot net Reported by: ena dot melia dot ymail at gmail dot com Summary: failed disable function ini_get() using php.ini Status: Open Type: Bug Package: PHP options/info functions Operating System: linux PHP Version: 7.3.2 Block user comment: N Private report: N New Comment: that's simply not true and i doubt that this is even possible given how such code works, what about show your php.ini line and make sure you edit the correct config file? [harry@srv-rhsoft:~]$ php -a Interactive mode enabled php > die(ini_get('disable_functions')); Warning: ini_get() has been disabled for security reasons in php shell code on line 1 Previous Comments: ------------------------------------------------------------------------ [2019-03-01 10:06:01] ena dot melia dot ymail at gmail dot com Description: ------------ i want to disable function ini_get() using php.ini but it doesnt work nb: i can successfully disable other function like phpinfo() php.ini disable_functions = ini_get //not work disable_functions = phpinfo() //work PHP 7.3.2-3 (cli) (built: Feb 8 2019 15:05:54) ( NTS ) Test script: --------------- <?php die(ini_get('disable_functions')); ?> Expected result: ---------------- Warning: ini_get() has been disabled for security reasons ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77687&edit=1

« previous php.bugs (#219790) next »