php.net |  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
 [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 212.232.23.152 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

Patches

Pull Requests

History

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

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

Marking as bogus...

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC