From 0499a7b4f9f291279de8907de27d3711e53a967b Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 5 Dec 2021 12:22:07 +0800 Subject: [PATCH] max_input_var --- plugins/php/conf/php5.ini | 21 +-------------------- plugins/php/conf/php7.ini | 25 ++----------------------- plugins/php/conf/php8.ini | 16 +--------------- plugins/php/index.py | 1 + 4 files changed, 5 insertions(+), 58 deletions(-) diff --git a/plugins/php/conf/php5.ini b/plugins/php/conf/php5.ini index 550839677..b2ee9e7fb 100644 --- a/plugins/php/conf/php5.ini +++ b/plugins/php/conf/php5.ini @@ -12,6 +12,7 @@ zend.enable_gc = On expose_php = On max_execution_time = 30 max_input_time = 60 +max_input_var = 1000 memory_limit = 128M error_reporting = E_ALL display_errors = On @@ -60,12 +61,6 @@ iconv.input_encoding = ISO-8859-1 iconv.internal_encoding = ISO-8859-1 iconv.output_encoding = ISO-8859-1 -[intl] -[sqlite] -[sqlite3] -[Pcre] -[Pdo] - [Pdo_mysql] pdo_mysql.cache_size = 2000 @@ -187,13 +182,7 @@ mssql.min_message_severity = 10 mssql.compatibility_mode = Off mssql.secure_connection = Off -[Assertion] -[COM] -[mbstring] -[gd] -[exif] [Tidy] - tidy.clean_output = Off [soap] @@ -202,14 +191,6 @@ soap.wsdl_cache_dir="/tmp" soap.wsdl_cache_ttl=86400 soap.wsdl_cache_limit = 5 -[sysvshm] [ldap] ldap.max_links = -1 - -[mcrypt] - - -[dba] -[curl] -[Zend Opcache] diff --git a/plugins/php/conf/php7.ini b/plugins/php/conf/php7.ini index cfd0035a8..eef23945b 100644 --- a/plugins/php/conf/php7.ini +++ b/plugins/php/conf/php7.ini @@ -12,7 +12,7 @@ zend.enable_gc = On expose_php = On max_execution_time = 30 max_input_time = 60 -max_input_var = 10000 +max_input_var = 1000 memory_limit = 128M error_reporting = E_ALL display_errors = On @@ -60,18 +60,11 @@ iconv.input_encoding = ISO-8859-1 iconv.internal_encoding = ISO-8859-1 iconv.output_encoding = ISO-8859-1 -[intl] -[sqlite] -[sqlite3] -[Pcre] -[Pdo] - [Pdo_mysql] pdo_mysql.cache_size = 2000 pdo_mysql.default_socket= -[Phar] [mail function] SMTP = localhost @@ -129,8 +122,6 @@ mysqli.reconnect = Off mysqlnd.collect_statistics = On mysqlnd.collect_memory_statistics = On -[OCI8] - [PostgreSQL] pgsql.allow_persistent = On @@ -187,13 +178,8 @@ mssql.min_message_severity = 10 mssql.compatibility_mode = Off mssql.secure_connection = Off -[Assertion] -[COM] -[mbstring] -[gd] -[exif] -[Tidy] +[Tidy] tidy.clean_output = Off [soap] @@ -206,10 +192,3 @@ soap.wsdl_cache_limit = 5 [ldap] ldap.max_links = -1 - -[mcrypt] - - -[dba] -[curl] -[Zend Opcache] diff --git a/plugins/php/conf/php8.ini b/plugins/php/conf/php8.ini index 9d810f3e2..58aaacaa5 100644 --- a/plugins/php/conf/php8.ini +++ b/plugins/php/conf/php8.ini @@ -12,7 +12,7 @@ zend.enable_gc = On expose_php = On max_execution_time = 30 max_input_time = 60 -max_input_var = 10000 +max_input_var = 1000 memory_limit = 128M error_reporting = E_ALL display_errors = On @@ -60,18 +60,11 @@ iconv.input_encoding = ISO-8859-1 iconv.internal_encoding = ISO-8859-1 iconv.output_encoding = ISO-8859-1 -[intl] -[sqlite] -[sqlite3] -[Pcre] -[Pdo] - [Pdo_mysql] pdo_mysql.cache_size = 2000 pdo_mysql.default_socket= -[Phar] [mail function] SMTP = localhost @@ -187,13 +180,7 @@ mssql.min_message_severity = 10 mssql.compatibility_mode = Off mssql.secure_connection = Off -[Assertion] -[COM] -[mbstring] -[gd] -[exif] [Tidy] - tidy.clean_output = Off [soap] @@ -202,7 +189,6 @@ soap.wsdl_cache_dir="/tmp" soap.wsdl_cache_ttl=86400 soap.wsdl_cache_limit = 5 -[sysvshm] [ldap] ldap.max_links = -1 diff --git a/plugins/php/index.py b/plugins/php/index.py index 94e6db264..57be65ca7 100755 --- a/plugins/php/index.py +++ b/plugins/php/index.py @@ -314,6 +314,7 @@ def getPhpConf(version): {'name': 'asp_tags', 'type': 1, 'ps': 'ASP标签支持'}, {'name': 'max_execution_time', 'type': 2, 'ps': '最大脚本运行时间'}, {'name': 'max_input_time', 'type': 2, 'ps': '最大输入时间'}, + {'name': 'max_input_var', 'type': 2, 'ps': '最大输入数量'}, {'name': 'memory_limit', 'type': 2, 'ps': '脚本内存限制'}, {'name': 'post_max_size', 'type': 2, 'ps': 'POST数据最大尺寸'}, {'name': 'file_uploads', 'type': 1, 'ps': '是否允许上传文件'},