php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #55649
Patch bug55649.diff revision 2011-09-09 05:05 UTC by laruence@php.net
Patch php_undef_function_bug revision 2011-09-09 03:39 UTC by anton dot dobkin at gmail dot com

Patch php_undef_function_bug for Compile Failure Bug #55649

Patch version 2011-09-09 03:39 UTC

Return to Bug #55649 | Download this patch
Patch Revisions:

Developer: anton.dobkin@gmail.com

diff -Nur php-5.3.8_orig/Zend/zend_strtod.c php-5.3.8/Zend/zend_strtod.c
--- php-5.3.8_orig/Zend/zend_strtod.c	2011-09-08 14:57:41.193000999 +0700
+++ php-5.3.8/Zend/zend_strtod.c	2011-09-08 14:58:46.775000964 +0700
@@ -888,9 +888,9 @@
 	j = b->wds;
 #ifdef DEBUG
 	if (i > 1 && !a->x[i-1])
-		Bug("cmp called with a->x[a->wds-1] == 0");
+		ZEND_PUTS("cmp called with a->x[a->wds-1] == 0");
 	if (j > 1 && !b->x[j-1])
-		Bug("cmp called with b->x[b->wds-1] == 0");
+		ZEND_PUTS("cmp called with b->x[b->wds-1] == 0");
 #endif
 	if (i -= j)
 		return i;
@@ -1039,7 +1039,7 @@
 	xa = xa0 + a->wds;
 	y = *--xa;
 #ifdef DEBUG
-	if (!y) Bug("zero y in b2d");
+	if (!y) ZEND_PUTS("zero y in b2d");
 #endif
 	k = hi0bits(y);
 	*e = 32 - k;
@@ -1137,7 +1137,7 @@
 	} else {
 #ifdef DEBUG
 		if (!z)
-			Bug("Zero passed to d2b");
+			ZEND_PUTS("Zero passed to d2b");
 #endif
 		k = lo0bits(&z);
 		x[0] = z;
@@ -1169,7 +1169,7 @@
 	} else {
 #ifdef DEBUG
 		if (!z)
-			Bug("Zero passed to d2b");
+			ZEND_PUTS("Zero passed to d2b");
 #endif
 		k = lo0bits(&z);
 		if (k >= 16) {
@@ -1288,7 +1288,7 @@
 	n = S->wds;
 #ifdef DEBUG
 	/*debug*/ if (b->wds > n)
-		/*debug*/   Bug("oversize b in quorem");
+		/*debug*/   ZEND_PUTS("oversize b in quorem");
 #endif
 	if (b->wds < n)
 		return 0;
@@ -1299,7 +1299,7 @@
 	q = *bxe / (*sxe + 1);  /* ensure q <= true quotient */
 #ifdef DEBUG
 	/*debug*/ if (q > 9)
-		/*debug*/   Bug("oversized quotient in quorem");
+		/*debug*/   ZEND_PUTS("oversized quotient in quorem");
 #endif
 	if (q) {
 		borrow = 0;
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 08:01:29 2024 UTC