Skip to content

Commit

Permalink
Disables some PHP functions that are typically used for nefarious thi…
Browse files Browse the repository at this point in the history
…ngs.
  • Loading branch information
Tawmu committed Mar 5, 2024
1 parent b2a70c9 commit 4def633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpfpm/rootfs/nhsla/setup/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ serialize_precision = -1
; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names.
; http://php.net/disable-functions
disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
disable_functions = highlight_file,show_source,phpinfo,shell_exec,exec,passthru,system,proc_open,popen,parse_ini_file,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,

; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names.
Expand Down

0 comments on commit 4def633

Please sign in to comment.