|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-10-29 18:09 UTC] requinix@php.net
-Package: PHP Language Specification
+Package: *General Issues
[2014-10-29 18:09 UTC] stas@php.net
-Package: *General Issues
+Package: Scripting Engine problem
[2016-08-25 17:40 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Assigned To:
+Assigned To: cmb
[2016-08-25 17:40 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 13:00:01 2025 UTC |
Description: ------------ I am running with PHP 5.4.33 Input variables is less than the limit, but always prompt me input variables exceed. I extended to 10000, but still the same. Array ( [type] => 2 [message] => Unknown: Input variables exceeded 10000. To increase the limit change max_input_vars in php.ini. [file] => Unknown [line] => 0 ) RAW data to submit: ------------------- POST: Array ( [username] => user [password] => password [additional] => {"appName":"app","cicd":"","clientIP":"10.1.1.170","clientMac":"10:16:9e:8d:aa:12","clientName":"Asus K012","clientPlatform":"Jelly Bean,4.3","clientTyp":"MA"} [api_Key] => 4ruOFVi94rFKYjEeeDeWAq/kYAZinqbi90KeoJYh2SNVL95GbYO8rDaP7g4N1w6L [token] => {ieZivx5HZII=}{070YNK2R4bM=}{L1bXW5MgaM}{MzQ2c3BtbTltdTV1M2NsMTdybGtmbWU3ZTc=}{} [from_datetime] => ) Why? Test script: --------------- $fields = array( "username"=>$_POST['userid'], "password"=>$_POST['passwd'], "api_Key"=>"4ruOFVi94rFKYjEeeDeWAq/kYAZinqbi90KeoJYh2SNVL95GbYO8rDaP7g4N1w6L", "additional"=>Array("appName"=>"app","cicd"=>"","clientIP"=>"10.1.1.170","clientMac"=>"10:16:9e:8d:aa:12","clientName"=>"Asus K012", "clientPlatform"=>"Jelly Bean,4.3", "clientTyp"=>"MA"), "token"=>$_POST['token'], "from_datetime"=>$_POST['from_datetime'] ); $fields_string = ""; foreach($fields as $key=>$value) { if(is_array($value)){ $fields_string .= urldecode(http_build_query(array($key => $value))); }else{ $fields_string .= $key.'='.$value.'&'; } } rtrim($fields_string,'&'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, count($fields)); curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string); curl_setopt($ch, CURLOPT_HEADER, 0); // DO NOT RETURN HTTP HEADERS curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // RETURN THE CONTENTS OF THE CALL curl_exec($ch); curl_close($ch);