From:             [EMAIL PROTECTED]
Operating system: RedHat 8
PHP version:      4CVS-2003-01-10 (stable)
PHP Bug Type:     Variables related
Bug description:  $_POST doesn't contain good value

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

Reply via email to