|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21574 $_POST doesn't contain good value
Submitted: 2003-01-10 20:23 UTC Modified: 2003-01-11 03:12 UTC
From: j-blion at ifrance dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4CVS-2003-01-10 (stable) OS: RedHat 8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
27 + 18 = ?
Subscribe to this entry?

 [2003-01-10 20:23 UTC] j-blion at ifrance dot com
My configuration is : 
 - RedHat8
 - Apache 2.0.43
 - PHP 4.3.1-dev (same problem with PHP 4.4.0-dev, PHP 5.0.0-dev ; PHP 4.3.0 have another annoying problem)

I have IP stored in a db in longint format (with ip2long(...)).
I use the following script to obtain the hostname of an IP.

$entier = $_POST[entier];
//print_r($_POST); // To view the bug
print "<form action=ip.php method=post name=conversion>";
print "<input type=text name=entier value=$entier>";
print "<input type=submit value=Convertir>";
print "</form><br><br>";
$ip = long2ip($entier);
print $ip;
print "<br>".gethostbyaddr($ip);

For example, if I type -722987112, I want to obtain with the good hostname.

I have this problem : 
if I perform a print_r($_POST), I obtain : 
Array ( [entier] => -722987112entier=-722987112 )

The script worked fine with Apache 1.2.27/PHP 4.2.3


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-10 22:00 UTC]
It looks the same as #21566.

And it looks very critical to me?
 [2003-01-10 22:15 UTC]
Verified with Apache2 only. (Latest too).
 [2003-01-11 03:12 UTC]
Duplication of bug #18648.

Marking as bogus...

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue May 17 04:05:45 2022 UTC