summaryrefslogtreecommitdiff
path: root/ext/bcmath/bcmath.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2002-06-26 07:24:47 +0000
committerDerick Rethans <derick@php.net>2002-06-26 07:24:47 +0000
commit8967b5725bf079bf9708cb39fe371687ad69266f (patch)
tree5d42348183aeb83bab42661ca61e1038871b5d80 /ext/bcmath/bcmath.c
parent2d1b30478175fea6c2bd8d61e0eae2c26232dcb0 (diff)
downloadphp-git-8967b5725bf079bf9708cb39fe371687ad69266f.tar.gz
Unify error messages
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 8220752e28..74e07c2196 100644
--- a/ext/bcmath/bcmath.c
+++ b/ext/bcmath/bcmath.c
@@ -282,7 +282,7 @@ PHP_FUNCTION(bcdiv)
Z_TYPE_P(return_value) = IS_STRING;
break;
case -1: /* division by zero */
- php_error(E_WARNING, "Division by zero");
+ php_error(E_WARNING, "%s(): Division by zero", get_active_function_name(TSRMLS_C));
break;
}
bc_free_num(&first);
@@ -323,7 +323,7 @@ PHP_FUNCTION(bcmod)
Z_TYPE_P(return_value) = IS_STRING;
break;
case -1:
- php_error(E_WARNING, "Division by zero");
+ php_error(E_WARNING, "%s(): Division by zero", get_active_function_name(TSRMLS_C));
break;
}
bc_free_num(&first);
@@ -409,7 +409,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, "Square root of negative number");
+ php_error(E_WARNING, "%s(): Square root of negative number", get_active_function_name(TSRMLS_C));
}
bc_free_num(&result);
return;