summaryrefslogtreecommitdiff
path: root/CODING_STANDARDS
diff options
context:
space:
mode:
authorMarkus Fischer <mfischer@php.net>2002-08-08 11:22:18 +0000
committerMarkus Fischer <mfischer@php.net>2002-08-08 11:22:18 +0000
commit652baa710ef7653f1940bde07828e7c18faab653 (patch)
tree8dc7450b12c00b978f1e825e5b83e952165c21e1 /CODING_STANDARDS
parent0e50ac4b2c79e12fcc6079e0f7647444c02f268e (diff)
downloadphp-git-652baa710ef7653f1940bde07828e7c18faab653.tar.gz
- Add note how php_error() messages SHOULD (rfc2119) look like.
Diffstat (limited to 'CODING_STANDARDS')
-rw-r--r--CODING_STANDARDS7
1 files changed, 7 insertions, 0 deletions
diff --git a/CODING_STANDARDS b/CODING_STANDARDS
index 848b4efd0c..af4ae10c43 100644
--- a/CODING_STANDARDS
+++ b/CODING_STANDARDS
@@ -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.