]> granicus.if.org Git - php/commitdiff
- Add note how php_error() messages SHOULD (rfc2119) look like.
authorMarkus Fischer <mfischer@php.net>
Thu, 8 Aug 2002 11:22:18 +0000 (11:22 +0000)
committerMarkus Fischer <mfischer@php.net>
Thu, 8 Aug 2002 11:22:18 +0000 (11:22 +0000)
CODING_STANDARDS

index 848b4efd0cee67c8ecaa4f79dabc089a08e9ca4d..af4ae10c43ae5d5f1ec9cb18f4ade8ccced9a6a1 100644 (file)
@@ -56,6 +56,13 @@ Exceptions:
     to parse URL", "Unable to connect to URL server" and "Unable
     to fetch URL text", respectively.
 
+    It has been silently agreed to prefix every php_error() message with the
+    name of the current function if applicable:
+
+    php_error(E_WHATEVER, "%s(): Desc.", get_active_function_name(TSRMLS_C));
+
+    Fixing ("unifying") existing php_error() message is a good thing [tm].
+
 [6] NEVER USE strncat().  If you're absolutely sure you know what you're doing,
     check its man page again, and only then, consider using it, and even then,
     try avoiding it.