summaryrefslogtreecommitdiff
path: root/ext/bcmath/bcmath.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-12-05 21:53:25 +0000
committerMarcus Boerger <helly@php.net>2002-12-05 21:53:25 +0000
commit4ce4a1c32cc1c5156edcab52fb9aa81e236edcf0 (patch)
tree662e5f83e731261468b1ec9ee312fc3fbf9a3ac4 /ext/bcmath/bcmath.c
parent8ed84254cd943893e1deb99263e2cc46a9dcc9e3 (diff)
downloadphp-git-4ce4a1c32cc1c5156edcab52fb9aa81e236edcf0.tar.gz
php_error -> php_error_docref
Diffstat (limited to 'ext/bcmath/bcmath.c')
-rw-r--r--ext/bcmath/bcmath.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bcmath/bcmath.c b/ext/bcmath/bcmath.c
index 556460ccda..2a8b346c89 100644
--- a/ext/bcmath/bcmath.c
+++ b/ext/bcmath/bcmath.c
@@ -278,7 +278,7 @@ PHP_FUNCTION(bcdiv)
Z_TYPE_P(return_value) = IS_STRING;
break;
case -1: /* division by zero */
- php_error(E_WARNING, "%s(): Division by zero", get_active_function_name(TSRMLS_C));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Division by zero");
break;
}
bc_free_num(&first);
@@ -319,7 +319,7 @@ PHP_FUNCTION(bcmod)
Z_TYPE_P(return_value) = IS_STRING;
break;
case -1:
- php_error(E_WARNING, "%s(): Division by zero", get_active_function_name(TSRMLS_C));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Division by zero");
break;
}
bc_free_num(&first);
@@ -405,7 +405,7 @@ PHP_FUNCTION(bcsqrt)
Z_STRLEN_P(return_value) = strlen(Z_STRVAL_P(return_value));
Z_TYPE_P(return_value) = IS_STRING;
} else {
- php_error(E_WARNING, "%s(): Square root of negative number", get_active_function_name(TSRMLS_C));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Square root of negative number");
}
bc_free_num(&result);
return;