Req->Bug #65026 [Opn->Nab]: if a function is used which is blocked by disable_functions nothing is logged
| From: | mbeccati@php.net | Date: | Thu, 13 Jun 2013 11:27:05 +0000 |
| Subject: | Req->Bug #65026 [Opn->Nab]: if a function is used which is blocked by disable_functions nothing is logged | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-179538@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65026&edit=1
ID: 65026
Updated by: mbeccati@php.net
Reported by: mbr at hlkomm dot de
Summary: if a function is used which is blocked by
disable_functions nothing is logged
-Status: Open
+Status: Not a bug
-Type: Feature/Change Request
+Type: Bug
-Package: Testing related
+Package: Scripting Engine problem
Operating System: Irrelevant
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Are you sure you didn't have some error handler catching the warning? And/or are you sure that
you modified the right php.ini using the right syntax?
e.g.
php -d disable_functions=strlen -r 'echo strlen("abc");'
PHP Warning: strlen() has been disabled for security reasons in Command line code on line 1
Previous Comments:
------------------------------------------------------------------------
[2013-06-13 08:57:00] mbr at hlkomm dot de
Description:
------------
Today I had the issue that the use of a function was silenty ignored.
On the system the configuration directive
disable_functions exec
was set.
In a script exec was used.
Even I wrote something like:
ini_set('display_errors', 'On');
error_reporting(E_ALL);
$lastLine = exec($command, $output, $returnValue);
during debugging no INFO/WARN/ERROR was shown that the exec was blocked by configuration.
I would expect a WARN like "Use of function exec is blocked by configuration on line xxx"
or something like this
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65026&edit=1