php.net |  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
14 - 10 = ?
Subscribe to this entry?

 
 [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">
</form>

<pre>
<?
var_dump($_POST);
?>
</pre>

-- end file a.php

While we send this form 
we will see :

array(1) {
  ["aaaa"]=>
  array(1) {
    [0]=>
    string(6) "567890"
  }
}

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-22 05:46 UTC] derick@php.net
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 http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net 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 www.proxy2.de 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-2022 The PHP Group
All rights reserved.
Last updated: Tue Jan 25 06:03:33 2022 UTC