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

From: Date: Thu, 25 Jan 2001 00:24:33 +0000
Subject: PHP 4.0 Bug #8884 Updated: gethostbyaddr returns a 15 chars string IP when an error occurs
Groups: php.dev 
Request: Send a blank email to php-dev+get-44938@lists.php.net to get a copy of this message
ID: 8884 Updated by: sniper Reported By: almico@almico.com Old-Status: Open Status: Feedback Bug Type: Network related Assigned To: Comments: I can't reproduce this. Could you please include an example script which demonstrates this behaviour? And maybe try the latest CVS snapshot from http://snaps.php.net/ too?? --Jani Previous Comments: --------------------------------------------------------------------------- [2001-01-24 09:07:00] almico@almico.com 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. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8884

« previous php.dev (#44938) next »