summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-03-08 21:42:10 (GMT)
committerfoobar <sniper@php.net>2005-03-08 21:42:10 (GMT)
commitd0bb8f5f12aaca0735b532a578eef79c7b283d2a (patch)
treee716113a188f124d0028e9578f04046c6f216fd2 /main
parent0e9e0f62fc6976e12572e13f1e324b5da283bc98 (diff)
downloadphp-d0bb8f5f12aaca0735b532a578eef79c7b283d2a.tar.gz
This makes more sense. (Someone might actually use php_error_docref0() :)
Diffstat (limited to 'main')
-rw-r--r--main/main.c4
-rw-r--r--main/php.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/main/main.c b/main/main.c
index b2dd27e..a114e1f 100644
--- a/main/main.c
+++ b/main/main.c
@@ -545,9 +545,9 @@ PHPAPI void php_verror(const char *docref, const char *params, int type, const c
}
/* }}} */
-/* {{{ php_error_docref */
+/* {{{ php_error_docref0 */
/* See: CODING_STANDARDS for details. */
-PHPAPI void php_error_docref(const char *docref TSRMLS_DC, int type, const char *format, ...)
+PHPAPI void php_error_docref0(const char *docref TSRMLS_DC, int type, const char *format, ...)
{
va_list args;
diff --git a/main/php.h b/main/php.h
index e9f87ba..6d58825 100644
--- a/main/php.h
+++ b/main/php.h
@@ -299,7 +299,7 @@ PHPAPI void php_verror(const char *docref, const char *params, int type, const c
#endif
/* PHPAPI void php_error(int type, const char *format, ...); */
-PHPAPI void php_error_docref(const char *docref TSRMLS_DC, int type, const char *format, ...)
+PHPAPI void php_error_docref0(const char *docref TSRMLS_DC, int type, const char *format, ...)
PHP_ATTRIBUTE_FORMAT(printf, PHP_ATTR_FMT_OFFSET + 3, PHP_ATTR_FMT_OFFSET + 4);
PHPAPI void php_error_docref1(const char *docref TSRMLS_DC, const char *param1, int type, const char *format, ...)
PHP_ATTRIBUTE_FORMAT(printf, PHP_ATTR_FMT_OFFSET + 4, PHP_ATTR_FMT_OFFSET + 5);
@@ -307,6 +307,8 @@ PHPAPI void php_error_docref2(const char *docref TSRMLS_DC, const char *param1,
PHP_ATTRIBUTE_FORMAT(printf, PHP_ATTR_FMT_OFFSET + 5, PHP_ATTR_FMT_OFFSET + 6);
END_EXTERN_C()
+#define php_error_docref php_error_docref0
+
#define zenderror phperror
#define zendlex phplex