diff options
author | Marcus Boerger <helly@php.net> | 2002-12-05 21:53:25 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-12-05 21:53:25 +0000 |
commit | 4ce4a1c32cc1c5156edcab52fb9aa81e236edcf0 (patch) | |
tree | 662e5f83e731261468b1ec9ee312fc3fbf9a3ac4 /ext/bcmath/bcmath.c | |
parent | 8ed84254cd943893e1deb99263e2cc46a9dcc9e3 (diff) | |
download | php-git-4ce4a1c32cc1c5156edcab52fb9aa81e236edcf0.tar.gz |
php_error -> php_error_docref
Diffstat (limited to 'ext/bcmath/bcmath.c')
-rw-r--r-- | ext/bcmath/bcmath.c | 6 |
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; |