Bug #77687 [Fbk->Opn]: failed disable function ini_get() using php.ini
| From: | ena dot melia dot ymail at gmail dot com | Date: | Tue, 05 Mar 2019 21:47:48 +0000 |
| Subject: | Bug #77687 [Fbk->Opn]: failed disable function ini_get() using php.ini | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-219855@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
User updated by: ena dot melia dot ymail at gmail dot com
Reported by: ena dot melia dot ymail at gmail dot com
Summary: failed disable function ini_get() using php.ini
-Status: Feedback
+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:
yeah. its work now
I am sorry. maybe that was my mistake.
I disabled opcache via php.ini and waited for 1 day. then I tried to see the results and ini_get was
successfully disabled.
so my conclusion is that the failure to disable the "ini_get" function because the results
from the "echo ini_get()" command are still cached by Opcache.
thank you for all the responses ^_^
Previous Comments:
------------------------------------------------------------------------
[2019-03-01 16:48:06] requinix@php.net
Works for me too.
------------------------------------------------------------------------
[2019-03-01 10:12:42] spam2 at rhsoft dot net
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
------------------------------------------------------------------------
[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