Remove workarounds to sort extensions.ini since ports tree now has a better solution in place to track PHP modules dependencies
Move copyright from ESF to Netgate
Uniformize memory limits and remove old code (revised)
1) Allow setting a memory_limit up to 768M (Suhosin)2) Remove old workarounds. Memory limits on config.inc will be new defaults
(cherry picked from commit 7edcc54b2e9d1de51d5e6d0aedade89bc2cf0699)
Ensure extensions.ini is readable by non root users
https://redmine.pfsense.org/issues/6686
Review license / copyright on all files (1st round)
Set request_terminate_timeout to the same as max_execution_time in case something executed externally doesn't respond, to avoid hanging up all of php-fpm eventually. Ticket #6318 among other similar potential issues.
Relax Suhosin to allow a 512M memory limit
Reduce log level for RELEASE versions. Fixes #6178
Revert part of 475f0b6db committed by accident
Stop processing when find it
Add missing PHP modules, it should fix #6041
Simplify logic
Ensure the extensions.ini has no duplications before setting up php.ini. Fixes #5943
Strengthen PHP session settings
See https://secure.php.net/manual/en/session.configuration.php#ini.session.hash-function
Revert maximum array depth (aka input nesting level) to default values
This is per default 50 in Suhosin (*.max_array_depth) and 64 in PHP (max_input_nesting_level)
Note: Array depth is not the number of elements within an array.
Increase max_input_vars
Since Suhosin has a configured limit of 5000 maximum input variables, for consistency, PHP should be configured with a similar setting (the default is just 1000). This will allow BIG forms to save without any problem in the future.
Rename php-fpm pool from lighty to nginx
Include www/classes and www/classes/Form in the PHP include path
Remove /usr/local/lib/php.ini, we don't need 2 copies of this
Introduce read_global_var:
- Add a new script, read_global_var, that returns the value of any item contained in global array $g- Replace all grep and sed magic from shell scripts
Introduce read_xml_tag.sh
Create /usr/local/sbin/read_xml_tag.sh, that will read a xml tag fromconfig file using xmllint. Replace all direct read using cat, grep, sed,... by this script
Fix #5220, setup PHP timezone:
- Get defined zoneinfo in the following order: - /var/db/zoneinfo - /cf/conf/config.xml - /etc/inc/globals_override.inc - /etc/inc/globals.inc
Consider globals_override.inc and replace hard coded pfSense string by product_name
Use PHP 5.6 extensions dir
Do not explicit add opcache to zend_extension, just enable or disable it
Remove ioncube references from php.ini, and set zend_extensions properly
Move opcache to zend_extensions
Move main pfSense content to src/