1
0
mirror of https://github.com/php/php-src.git synced 2026-04-12 18:43:37 +02:00

#- HTML-safe error for pow()

This commit is contained in:
Jeroen van Wolffelaar
2001-08-03 23:27:23 +00:00
parent b32f1ab299
commit dc4adaa231

View File

@@ -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,<negative integer>)");
"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,<negative integer>)");
"Division by zero: pow(0,[negative integer])");
RETURN_FALSE;
} else {
RETURN_LONG(0);