Verified Commit 15ae144e authored by Amin Vakil's avatar Amin Vakil
Browse files

Remove unused or deprecated functions

virtual "can" be used when served under apache2
https://www.php.net/manual/en/function.virtual.php

dl has been removed since php-fpm 7.0.0
https://www.php.net/manual/en/function.dl.php

Disable popen

Disable escapeshellarg

Disable pclose

Disable symlink

Disable shell_exec

Disable proc_open

Disable proc_get_status

Reorder to less annoy jelle:(
parent 6a888886
Pipeline #18530 passed with stage
in 33 seconds
......@@ -24,4 +24,4 @@ php_admin_value[opcache.interned_strings_buffer] = 8
php_admin_value[opcache.max_accelerated_files] = 4000
php_admin_value[opcache.revalidate_freq] = 60
php_admin_value[opcache.fast_shutdown] = 1
php_admin_value[disable_functions] = virtual, dl, suexec, system, proc_nice, proc_terminate, exec, passthru, show_source, escapeshellcmd
php_admin_value[disable_functions] = suexec, system, proc_nice, proc_terminate, exec, passthru, show_source, escapeshellcmd
......@@ -18,5 +18,5 @@ pm.max_requests = 2000
php_admin_value[open_basedir] = {{aurweb_dir}}:/etc/aurweb/
php_admin_value[upload_tmp_dir] = {{ aurweb_dir }}/uploads
php_admin_value[session.save_path] = {{ aurweb_dir }}/sessions
php_admin_value[disable_functions] = virtual, dl, suexec, system, proc_nice, proc_terminate, exec, passthru, show_source, escapeshellcmd
php_admin_value[disable_functions] = symlink, suexec, system, shell_exec, popen, pclose, proc_get_status, proc_nice, proc_terminate, exec, passthru, show_source, escapeshellcmd
env[TMPDIR] = {{ aurweb_dir }}/uploads
......@@ -25,7 +25,7 @@ php_admin_value[opcache.interned_strings_buffer] = 8
php_admin_value[opcache.max_accelerated_files] = 200
php_admin_value[opcache.revalidate_freq] = 60
php_admin_value[opcache.fast_shutdown] = 1
php_admin_value[disable_functions] = virtual, dl, suexec, system, proc_nice, proc_terminate, exec, passthru, show_source, escapeshellcmd
php_admin_value[disable_functions] = symlink, suexec, system, proc_open, shell_exec, popen, proc_get_status, pclose, proc_nice, proc_terminate, exec, passthru, show_source, escapeshellcmd, escapeshellarg
php_admin_value[apc.shm_size] = 1024M
php_admin_value[apc.ttl] = 1800
......
......@@ -21,5 +21,5 @@ php_admin_value[opcache.interned_strings_buffer] = 8
php_admin_value[opcache.max_accelerated_files] = 200
php_admin_value[opcache.revalidate_freq] = 60
php_admin_value[opcache.fast_shutdown] = 1
php_admin_value[disable_functions] = virtual, dl, suexec, popen, proc_nice, proc_open, proc_terminate, exec, passthru, system, show_source, shell_exec, escapeshellcmd, escapeshellarg
php_admin_value[disable_functions] = virtual, dl, symlink, suexec, popen, proc_nice, proc_open, proc_terminate, exec, passthru, system, show_source, shell_exec, escapeshellcmd, escapeshellarg, proc_get_status, pclose
php_admin_flag[allow_url_fopen] = off
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment