PHP 4.0 Bug #8884: gethostbyaddr returns a 15 chars string IP when an error occurs

From: Date: Wed, 24 Jan 2001 14:07:00 +0000
Subject: PHP 4.0 Bug #8884: gethostbyaddr returns a 15 chars string IP when an error occurs
Groups: php.dev 
Request: Send a blank email to php-dev+get-44898@lists.php.net to get a copy of this message
From: almico@almico.com Operating system: Linux RedHat 7.0 PHP version: 4.0.4pl1 PHP Bug Type: Network related Bug description: gethostbyaddr returns a 15 chars string IP when an error occurs gethostbyaddr returns the original IP when an error occurs, but this string is always 15 chars long. This means that if the original IP was shorter than that, garbage will appear at the end of the line. I've temporarily fixed it by passing an IP with 15 blanks added to its end. -- Edit Bug report at: http://bugs.php.net/?id=8884&edit=1

« previous php.dev (#44898) next »