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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user