|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20024 cut first 4 letters in variables
Submitted: 2002-10-22 05:46 UTC Modified: 2003-04-06 21:10 UTC
From: netim at icentrum dot pl Assigned:
Status: Closed Package: mbstring related
PHP Version: 4.2.3 OS: windows + linux
Private report: No CVE-ID: None
 [2002-10-22 05:46 UTC] netim at icentrum dot pl
--- file a.php

<form action="a.php" method="POST" name="form">
          <input type="text" name="aaaa[]" value="1234567890">
		  <input type="submit">


-- end file a.php

While we send this form 
we will see :

array(1) {
  array(1) {
    string(6) "567890"

Variable $_POST["aaaa"][0] is "567890" 
and why not "1234567890"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-22 05:46 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
 [2003-02-19 17:23 UTC] vasja dot laharnar at guest dot arnes
Has this bug been fixed in version 4.3.0? I still have those 4 letters missing... I'm using a poll script by and when I try to post options to a poll it cuts the first 4 letters off. Please inform me by email.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Feb 23 03:01:30 2024 UTC