From 33f1938b505d40a56b13d0b76e9635768d9b813e Mon Sep 17 00:00:00 2001 From: Marius Burkard Date: Wed, 2 Mar 2016 11:21:00 +0100 Subject: [PATCH] - another addition on coding guidelines (PHP 5.3) --- CODING_NOTES.php.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CODING_NOTES.php.txt b/CODING_NOTES.php.txt index 040ce49e6f..88afcef365 100644 --- a/CODING_NOTES.php.txt +++ b/CODING_NOTES.php.txt @@ -1,12 +1,13 @@ -Some guidelines for web development with php. +Some guidelines for web development with PHP. ----------------------------------------------------- * Unix Line Breaks Only, NO windows breaks please. * Tabs to indent lines, NO spaces * no accidental _ no spaces before or after -* error_reporting(E_ALL|E_STRICT), yep php5 +* every PHP file starts and end with no spaces before or after +* error_reporting(E_ALL|E_STRICT), yep PHP 5 * Magic quotes is gone, get used to it now. config = magic_quotes_gpc() Everything must be quoted -* Don't use ereg, split and other old function -> gone in php 5.4 +* Don't use ereg, split and other old function -> gone in PHP 5.4 +* Don't use features that are not supported in PHP 5.3, for compatibility with LTS OS releases, ISPConfig must support PHP 5.3+ * Don't use shorttags. A Shorttag is always usw