Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 May 2005 15:53:00 +0200
From:      Bjoern Koenig <bkoenig@cs.tu-berlin.de>
To:        "Edwin L. Culp" <eculp@encontacto.net>
Cc:        ports@freebsd.org
Subject:   Re: Can't get php5 to build on machines that have php4 or have had php4
Message-ID:  <4291E03C.5080608@cs.tu-berlin.de>
In-Reply-To: <20050522110607.pfhjzicisw4484g8@mail.encontacto.net>
References:  <20050522110607.pfhjzicisw4484g8@mail.encontacto.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------090907050607080902070803
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

I'm sorry. I sent you a malicious patch. This is the correct one.

Björn

--------------090907050607080902070803
Content-Type: text/plain;
 name="patch-ext::standard::dns.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch-ext::standard::dns.c"

--- ext/standard/dns.c.bak	Mon May 23 14:32:16 2005
+++ ext/standard/dns.c	Mon May 23 14:33:18 2005
@@ -627,17 +627,17 @@
 				break;
 		}
 		if (type_to_fetch) {
-			res_ninit(&res);
+			__res_ninit(&res);
 			res.retrans = 5;
 			res.options &= ~RES_DEFNAMES;
 		
-			n = res_nmkquery(&res, QUERY, Z_STRVAL_P(host), C_IN, type_to_fetch, NULL, 0, NULL, buf.qb2, sizeof buf);
+			n = __res_nmkquery(&res, QUERY, Z_STRVAL_P(host), C_IN, type_to_fetch, NULL, 0, NULL, buf.qb2, sizeof buf);
 			if (n<0) {
 				php_error_docref(NULL TSRMLS_CC, E_WARNING, "res_nmkquery() failed");
 				zval_dtor(return_value);
 				RETURN_FALSE;
 			}
-			n = res_nsend(&res, buf.qb2, n, answer.qb2, sizeof answer);
+			n = __res_nsend(&res, buf.qb2, n, answer.qb2, sizeof answer);
 			if (n<0) {
 				php_error_docref(NULL TSRMLS_CC, E_WARNING, "res_nsend() failed");
 				zval_dtor(return_value);
@@ -673,7 +673,7 @@
 					add_next_index_zval(return_value, retval);
 				}
 			}
-			res_nclose(&res);
+			__res_nclose(&res);
 		}
 	}
 

--------------090907050607080902070803--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4291E03C.5080608>