cvs: php4 /ext/standard math.c
| From: | Jason Greene | Date: | Mon, 11 Nov 2002 16:34:40 +0000 |
| Subject: | cvs: php4 /ext/standard math.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-15995@lists.php.net to get a copy of this message | ||
jason Mon Nov 11 11:34:40 2002 EDT
Modified files:
/php4/ext/standard math.c
Log:
Switch to using error_docref
# Satisfy all those named Mar[ck]us
Index: php4/ext/standard/math.c
diff -u php4/ext/standard/math.c:1.95 php4/ext/standard/math.c:1.96
--- php4/ext/standard/math.c:1.95 Mon Nov 11 00:35:04 2002
+++ php4/ext/standard/math.c Mon Nov 11 11:34:39 2002
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: math.c,v 1.95 2002/11/11 05:35:04 jason Exp $ */
+/* $Id: math.c,v 1.96 2002/11/11 16:34:39 jason Exp $ */
#include "php.h"
#include "php_math.h"
@@ -542,7 +542,7 @@
convert_to_double_ex(base);
if (Z_DVAL_PP(base) <= 0.0) {
- php_error(E_WARNING, "log(): base must be greater than 0", Z_DVAL_PP(base));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "base must be greater than 0");
RETURN_FALSE;
}
RETURN_DOUBLE(log(Z_DVAL_PP(num)) / log(Z_DVAL_PP(base)));