From dc4adaa231bd6827c99b36f9229b04793bdb8d33 Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Fri, 3 Aug 2001 23:27:23 +0000 Subject: [PATCH] #- HTML-safe error for pow() --- ext/standard/math.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/standard/math.c b/ext/standard/math.c index 7882125258..e7b5663b7e 100644 --- a/ext/standard/math.c +++ b/ext/standard/math.c @@ -433,7 +433,7 @@ PHP_FUNCTION(pow) } else if (Z_DVAL_PP(zbase) == 0.0) { if (lexp < 0) { php_error(E_WARNING, - "Division by zero: pow(0.0,)"); + "Division by zero: pow(0.0,[negative integer])"); RETURN_FALSE; } else { RETURN_DOUBLE(0.0); @@ -458,7 +458,7 @@ PHP_FUNCTION(pow) case 0: if (lexp < 0) { php_error(E_WARNING, - "Division by zero: pow(0,)"); + "Division by zero: pow(0,[negative integer])"); RETURN_FALSE; } else { RETURN_LONG(0); -- 2.50.1