diff options
author | Andi Gutmans <andi@php.net> | 2000-03-11 20:48:49 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-03-11 20:48:49 +0000 |
commit | 9dca788ca04cfe185c3faaab8ad0b872b1762977 (patch) | |
tree | dc2f471e5637593dfc07b457ff3300ef08388d22 /ext/standard/dns.c | |
parent | fe558092e469f6307458cb0f3ae64ebcebf92b14 (diff) | |
download | php-git-9dca788ca04cfe185c3faaab8ad0b872b1762977.tar.gz |
- Don't define DEBUG anymore. Everyone should use PHP_DEBUG.
There are 2-3 third-party libs in PHP which use DEBUG and I left them
this way (primary example is pcrelib).
- Please test things and Andrei, can you check that pcrelib stopped
printing the warning messages?
Diffstat (limited to 'ext/standard/dns.c')
-rw-r--r-- | ext/standard/dns.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/dns.c b/ext/standard/dns.c index 6e63f37945..65ee1db015 100644 --- a/ext/standard/dns.c +++ b/ext/standard/dns.c @@ -75,14 +75,14 @@ char *php_gethostbyaddr(char *ip) struct hostent *hp; if ((int) (addr = inet_addr(ip)) == -1) { -#if DEBUG +#if PHP_DEBUG php_error(E_WARNING, "address not in a.b.c.d form"); #endif return estrdup(ip); } hp = gethostbyaddr((char *) &addr, sizeof(addr), AF_INET); if (!hp) { -#if DEBUG +#if PHP_DEBUG php_error(E_WARNING, "Unable to resolve %s\n", ip); #endif return estrdup(ip); @@ -127,7 +127,7 @@ PHP_FUNCTION(gethostbynamel) hp = gethostbyname((*arg)->value.str.val); if (hp == NULL || hp->h_addr_list == NULL) { -#if DEBUG +#if PHP_DEBUG php_error(E_WARNING, "Unable to resolve %s\n", (*arg)->value.str.val); #endif return; @@ -149,7 +149,7 @@ char *php_gethostbyname(char *name) hp = gethostbyname(name); if (!hp || !hp->h_addr_list) { -#if DEBUG +#if PHP_DEBUG php_error(E_WARNING, "Unable to resolve %s\n", name); #endif return estrdup(name); |