php.net |  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.
Password:
Status:
Package:
Bug Type:
Summary:
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
<?php

echo '<pre>';
print_r($_POST);
echo '</pre>';

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

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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-10 19:46 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip
 [2002-09-10 22:04 UTC] yohgaki@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.

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