From:             [EMAIL PROTECTED]
Operating system: Red Hat Linux release 7.1
PHP version:      4.2.3
PHP Bug Type:     Variables related
Bug description:  Post looses first 4 characters

Posting to an array variable LOOSES the first 4 charcters of data every
time.

The best way to see this is by example:

<!-- INPUT -->
<form action="<?=$_SELF?>" method="POST">
<input name="variable[]" value="123456789">
<input name="variable[]" value="abcdefghi">
<input type=submit value=submit name=submit>
</form>
<pre>
<?=print_r($_POST);?>
</pre>

<!-- OUTPUT -->
Array
(
    [variable] => Array
        (
            [0] => 56789
            [1] => efghi
        )

    [submit] => submit
)

---

I noticed this bug after a few clients upgraded to PHP 4.2.3 from 4.2.2.
Nothing else changed on the server.

-- 
Edit bug report at http://bugs.php.net/?id=20114&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20114&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20114&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20114&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20114&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20114&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20114&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20114&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20114&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20114&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20114&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20114&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20114&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20114&r=isapi

Reply via email to