cvs: php4 / CODING_STANDARDS

From: Date: Thu, 08 Aug 2002 11:22:18 +0000
Subject: cvs: php4 / CODING_STANDARDS
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-13209@lists.php.net to get a copy of this message
mfischer Thu Aug 8 07:22:18 2002 EDT Modified files: /php4 CODING_STANDARDS Log: - Add note how php_error() messages SHOULD (rfc2119) look like. Index: php4/CODING_STANDARDS diff -u php4/CODING_STANDARDS:1.13 php4/CODING_STANDARDS:1.14 --- php4/CODING_STANDARDS:1.13 Tue Mar 19 04:13:45 2002 +++ php4/CODING_STANDARDS Thu Aug 8 07:22:18 2002 @@ -56,6 +56,13 @@ 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.

« previous php.cvs (#13209) next »