cvs: php4 /ext/bcmath bcmath.c

From: Date: Wed, 26 Jun 2002 07:12:22 +0000
Subject: cvs: php4 /ext/bcmath bcmath.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-12524@lists.php.net to get a copy of this message
derick Wed Jun 26 03:12:22 2002 EDT Modified files: /php4/ext/bcmath bcmath.c Log: Unify error messages Index: php4/ext/bcmath/bcmath.c diff -u php4/ext/bcmath/bcmath.c:1.37 php4/ext/bcmath/bcmath.c:1.38 --- php4/ext/bcmath/bcmath.c:1.37 Tue Jun 18 14:51:33 2002 +++ php4/ext/bcmath/bcmath.c Wed Jun 26 03:12:21 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: bcmath.c,v 1.37 2002/06/18 18:51:33 andi Exp $ */ +/* $Id: bcmath.c,v 1.38 2002/06/26 07:12:21 derick Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -282,7 +282,7 @@ 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 @@ 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 @@ 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;

« previous php.cvs (#12524) next »