PHP 4.0 Bug #4785 Updated: Last POST variable has newline appended
| From: | Bug Database | Date: | Tue, 05 Sep 2000 02:22:57 +0000 |
| Subject: | PHP 4.0 Bug #4785 Updated: Last POST variable has newline appended | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-32054@lists.php.net to get a copy of this message | ||
ID: 4785
Updated by: sniper
Reported By: pete@byways.org
Status: Closed
Bug Type: Scripting Engine problem
Assigned To:
Comments:
So it is roxen-bug. Not php4 problem. Closed.
--Jani
Previous Comments:
[2000-08-31 23:52:51] pete@byways.org
This must be a bug in Roxen. It still occurs with latest PHP and Roxen, both using CGI and as a
Pike module.
---------------------------------------------------------------------------
[2000-08-31 11:40:02] sniper@php.net
What's the situation with this?
Is it bug in PHP4 or in Roxen?
--Jani
---------------------------------------------------------------------------
[2000-08-02 23:38:04] pete@byways.org
This still happens. I'm using PHP CVS as of 8-2-2000, and Roxen 2.0.71 (latest from CVS).
However, I believe that this is a problem with Roxen, as it doesn't happen when running Apache.
---------------------------------------------------------------------------
[2000-08-02 00:00:31] waldschrott@php.net
Can´t reproduce this, Please verify that it´s still happening using the latest version of PHP
(release 4.0.1pl2 or CVS).
---------------------------------------------------------------------------
[2000-06-02 18:55:09] pete@byways.org
I am running PHP 4.0.0 as a CGI with Roxen 2.0.50. When POSTing form data to a PHP script, the last
POST variable has a newline appended. I got it to happen using this simple script that shows the
POSTed variables URLencoded.
<html>
<head><title>POST Test Form</title></head>
<body>
<form method=POST action=form_test.html>
<input type=text name=FIELD1 size=10>
<input type=text name=FIELD2 size=10>
<input type=submit name=BUTTON value=Submit>
<input type=button name=BUTTON2 value="JS Submit"
onClick="this.form.submit()">
</form>
<p>POST variables, UrlEncoded to show possible garbage:</p>
<?
if (is_array($HTTP_POST_VARS)):
reset($HTTP_POST_VARS);
while (list($var, $value) = each($HTTP_POST_VARS)):
echo "$var: ".UrlEncode($value)."<br>";
endwhile;
endif;
?>
</body>
</html>
This could be a Roxen problem, but I'm reporting it both places in hopes someone can help!
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=4785