[PHP-BUG] Bug #68321 [NEW]: Input variables issues, incorrect errors report

[email protected] ("blurkings at hotmail dot com")
Newsgroups php.standards
Message-ID <[email protected]>
From:             blurkings at hotmail dot com
Operating system: CentOS 6.5
PHP version:      5.4.34
Package:          PHP Language Specification
Bug Type:         Bug
Bug description:Input variables issues, incorrect errors report

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);


-- 
Edit bug report at https://bugs.php.net/bug.php?id=68321&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=68321&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=68321&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=68321&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=68321&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=68321&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=68321&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=68321&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=68321&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=68321&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=68321&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=68321&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=68321&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=68321&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68321&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=68321&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=68321&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=68321&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68321&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=68321&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=68321&r=mysqlcfg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.