#19476 [Opn->Bgs]: Array via form chopped when Multi-byte support on.
| From: | derick@php.net | Date: | Wed, 18 Sep 2002 14:27:00 +0000 |
| Subject: | #19476 [Opn->Bgs]: Array via form chopped when Multi-byte support on. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-19638@lists.php.net to get a copy of this message | ||
ID: 19476
Updated by: derick@php.net
Reported By: thomas@deliduka.com
-Status: Open
+Status: Bogus
Bug Type: mbstring related
Operating System: Red Hat Linux 6 and 7.x
PHP Version: 4.2.3
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the original bug instead.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2002-09-18 08:48:19] thomas@deliduka.com
Since I have disabled mb support on my servers to get my
scripts to work I cannot give a concrete example online but
I can give something here.
My configure string is:
./configure --quiet --with-apxs=/usr/local/apache-1.3.26/
bin/apxs --with-ftp --with-mysql=/usr/local/mysql --with-
pgsql=/usr/local/pgsql --enable-track-vars --enable-
calendar --disable-debug --with-curl=/usr/local/curl --
enable-mbstring --enable-mbstr-enc-trans --with-mcrypt --
with-gd --with-png-dir --with-zlib-dir --with-jpeg-dir
a second server which also had this problem had a configure
string of:
./configure --quiet --with-apxs=/usr/local/apache-1.3.26/
bin/apxs --with-ftp --with-mysql=/usr/local/mysql --enable-
track-vars --enable-calendar --disable-debug --with-curl=/
usr/local/curl --enable-mbstring --enable-mbstr-enc-trans
Create a form in which some of the form values consist of:
<input type="text" name="myvar[myvar1]">
<input type="text" name="myvar[myvar2]">
<input type="text" name="myvar[myvar3]">
Then submit the form somewhere and echo back
$myvar['myvar1'], etc or even do a print_r(). You'll find
(hopefully as i did) that the first four characters of each
input are chopped off.
In my case the form field names were like this:
submitui[address1]
submitui[address2]
submitui[city]
submitui[state]
I've seen other forms do this successfully (not with the mb
support compiled in) so I incorporated it into my shopping
cart program. After adding the two parameters " --enable-
mbstring --enable-mbstr-enc-trans" submissions using this
form had the first four characters chopped off.
Since this is so weird I don't know if it would have been
caught before. I would love to see a solution to this since
I need MB support for a PHP Domain Registrar program we're
using.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19476&edit=1