|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19347 mbstring extension truncates variables
Submitted: 2002-09-10 18:28 UTC Modified: 2002-09-10 22:04 UTC
From: scottmacvicar at ntlworld dot com Assigned:
Status: Closed Package: mbstring related
PHP Version: 4.2.3 OS: Windows XP Pro
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.
Bug Type:
From: scottmacvicar at ntlworld dot com
New email:
PHP Version: OS:


 [2002-09-10 18:28 UTC] scottmacvicar at ntlworld dot com
Seems to be a problem with the mbstring extension and arrays being used as names of the input fields in forms.

If you use the following code

echo '<pre>';
echo '</pre>';

<form method="post">
<input type="text" name="array[]" size="8" />
<input type="submit" name="submit" value="test" />

It shows the example best, if the mbstring extension is enabled when you type any text into the text field it will remove the first four characters.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-10 19:46 UTC]
Please try using this CVS snapshot:
For Windows:
 [2002-09-10 22:04 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.

This bug has been fixed for both HEAD and PHP_4_2_0 branch.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Jan 26 22:03:57 2022 UTC