#24753 [Opn]: missing character in POST data
| From: | robin at newloop dot com | Date: | Wed, 23 Jul 2003 10:10:11 +0000 |
| Subject: | #24753 [Opn]: missing character in POST data | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-44559@lists.php.net to get a copy of this message | ||
ID: 24753
User updated by: robin at newloop dot com
Reported By: robin at newloop dot com
Status: Open
Bug Type: HTTP related
Operating System: Win XP Pro 2002 SP1
PHP Version: 4.3.2
New Comment:
ok, a simple test that passes a single value to php.
From HTML - no problem.
http://www.monkeydo.co.uk/php/phptest.html
From Flash there is only a problem on the first call to
the php.
http://www.monkeydo.co.uk/php/phptest.swf
Both call the same php script:
<?php
$test = stripslashes($_REQUEST["test"]);
echo ("phptest=".$test)
?>
I'm going to try looking at some flash advice on this
as well, but I have been using ASP previously with no
such problems from Flash, so not sure where the problem
is occuring.
Previous Comments:
------------------------------------------------------------------------
[2003-07-22 12:51:26] robin at newloop dot com
will try some tests from html pages as well as flash.
The problem exists on both _REQUEST and _POST. It's the
.last. character that goes missing. Will let you know
what I find.
------------------------------------------------------------------------
[2003-07-22 12:47:51] iliaa@php.net
Try to make a simple script just to see if the bug is particular to the
script you are using or any POST request. I find it extremely unusual
that _POST contains correct data while _REQUEST does not, since
_REQUEST is built using data from _POST.
------------------------------------------------------------------------
[2003-07-22 12:33:30] robin at newloop dot com
no, still open. That Doh! was for something else.
There is still a problem with the last POST variable
requested missing it's last character.
I could, of course just add an extra character, or
dummy variable, but I'd rather know if I'm working
around a feature or a bug, or if I'm simply doing
something wrong?
------------------------------------------------------------------------
[2003-07-22 12:24:40] derick@php.net
Bogus then :)
------------------------------------------------------------------------
[2003-07-22 12:10:01] robin at newloop dot com
again, big thanks!
register globals is Off
Worked out the space thing. Doh!
had a line specifically adding it:
$fileData = " ";
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24753
--
Edit this bug report at http://bugs.php.net/?id=24753&edit=1