#18966 [NEW]: gethostbyaddr() crashes Apache on certain IPs
From: php@silisoftware.com
Operating system: Windows XP Home (NT5.1b2600)
PHP version: 4.2.2
PHP Bug Type: Reproducible crash
Bug description: gethostbyaddr() crashes Apache on certain IPs
gethostbyaddr() crashes Apache (v1.3.24) when looking up certain IPs.
Example script:
echo gethostbyaddr('208.133.226.85');
Every other IP I've tried (so far about 40,000) didn't have any problems.
I tried the above line on another server running PHP4.2.2, Apache v1.3.26
and some form of Linux (2.4.9-31) and that had no problems.
Probably related: the Windows port of Webalizer crashes when performing
DNS lookups on the same line of the log file, so I suspect it's something
to do with DNS lookups in Windows (?).
--
Edit bug report at http://bugs.php.net/?id=18966&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=18966&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=18966&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18966&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18966&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18966&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18966&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18966&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18966&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18966&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18966&r=globals
Thread (7 messages)
- php at silisoftware dot com