ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-cvs
php-cvs
[PHP-CVS] cvs: php4 /ext/standard dns.c
by Ilia Alshanetsky other posts by this author
Aug 29 2002 3:44PM messages near this date
[PHP-CVS] cvs: php4(PHP_4_2_0) /ext/standard dns.c | Re: [PHP-CVS] cvs: php4 /ext/standard dns.c
iliaa		Thu Aug 29 11:44:01 2002 EDT

  Modified files:              
    /php4/ext/standard	dns.c 
  Log:
  Fixed bug #18966
  
  
Index: php4/ext/standard/dns.c
diff -u php4/ext/standard/dns.c:1.40 php4/ext/standard/dns.c:1.41
--- php4/ext/standard/dns.c:1.40	Fri Aug 23 21:19:27 2002
+++ php4/ext/standard/dns.c	Thu Aug 29 11:44:00 2002
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: dns.c,v 1.40 2002/08/24 01:19:27 helly Exp $ */
+/* $Id: dns.c,v 1.41 2002/08/29 15:44:00 iliaa Exp $ */
 
 /* {{{ includes
  */
@@ -128,7 +128,7 @@
 	hp = gethostbyaddr((char *) &addr, sizeof(addr), AF_INET);
 #endif
 
-	if (!hp) {
+	if (!hp || hp-> h_name == NULL || hp->h_name == '\0') {
 		return estrdup(ip);
 	}
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Ilia Alshanetsky
Sander Roobol
Ilia A.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved