-
-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Currently this rule detects just an error_reporting(0) code only (note: error_reporting(1-1) or error_reporting( 0 ) are passed). I suggest to revise this rule to detect usage of any function that may affect PHP code execution (independently of arguments passed):
assert_options
error_reporting
gc_disable
gc_enable
ini_set (ini_alter)
putenv
I'm not sure about:
set_time_limit: it is frequently used in the case of heavy server-side processing, I'd keep it as allowed one,set_include_path: may be used to run some legacy libraries,
There may be rarely cases where ini_set is necessary, so it may be allowed (if followed by restoring settings back before script returns to Joomla).
What do you think?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels