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

From: Date: Fri, 16 Mar 2001 21:38:05 +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-49116@lists.php.net to get a copy of this message
ID: 8884 Updated by: sniper Reported By: almico@almico.com Old-Status: Feedback Status: Closed Bug Type: Network related Assigned To: Comments: Works for me (4.0.5-dev) and no feedback. --Jani Previous Comments: --------------------------------------------------------------------------- [2001-01-24 19:24:33] sniper@php.net 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 --------------------------------------------------------------------------- [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. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8884&edit=2

« previous php.dev (#49116) next »