|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-06-13 08:57 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 05:00:01 2025 UTC |
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