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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: netim at icentrum dot pl
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 05:01:28 2024 UTC