hholzgra Fri Mar 1 10:56:13 2002 EDT
Modified files:
/phpdoc/RFC coding_standards
Log:
- a small addition regarding "E_ALL"
- i had a hard time figuring out the meaning of the "or die" sentence
should be more clear now that it is PHP "or die", not english "or die" ;)
Index: phpdoc/RFC/coding_standards
diff -u phpdoc/RFC/coding_standards:1.1 phpdoc/RFC/coding_standards:1.2
--- phpdoc/RFC/coding_standards:1.1 Fri Feb 22 08:54:14 2002
+++ phpdoc/RFC/coding_standards Fri Mar 1 10:56:13 2002
@@ -9,6 +9,9 @@
case you would like to present what register_globals
means.
+Make sure that the code won't produce any warnings
+even with error_reporting = E_ALL.
+
HOWTO ADD EXAMPLES TO THE DOCS:
@@ -55,7 +58,8 @@
more to come???
-Proper error handling, or die is good for development, but useless for production.
+Proper error handling, "... or die(...);" is good for development,
+but useless for production.
Use some user defined exit function instead on error.
example:
$conn = mysql_connect($host, $user, $pass)
@@ -266,4 +270,4 @@
</screen>
</para>
</example>
- </para>
\ No newline at end of file
+ </para>