Skip to content

Commit 33f1938

Browse files
author
Marius Burkard
committed
- another addition on coding guidelines (PHP 5.3)
1 parent 01c6f90 commit 33f1938

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

CODING_NOTES.php.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
Some guidelines for web development with php.
1+
Some guidelines for web development with PHP.
22
-----------------------------------------------------
33
* Unix Line Breaks Only, NO windows breaks please.
44
* Tabs to indent lines, NO spaces
55
* no accidental _<?php space before, within or after a file
6-
* every php file starts and end with <?php ?> no spaces before or after
7-
* error_reporting(E_ALL|E_STRICT), yep php5
6+
* every PHP file starts and end with <?php ?> no spaces before or after
7+
* error_reporting(E_ALL|E_STRICT), yep PHP 5
88
* Magic quotes is gone, get used to it now. config = magic_quotes_gpc() Everything must be quoted
9-
* Don't use ereg, split and other old function -> gone in php 5.4
9+
* Don't use ereg, split and other old function -> gone in PHP 5.4
10+
* Don't use features that are not supported in PHP 5.3, for compatibility with LTS OS releases, ISPConfig must support PHP 5.3+
1011
* Don't use shorttags. A Shorttag is <? and that is confusing with <?xml -> always usw <?php
1112
* Don't use namespaces
1213
* Column names in database tables and database table names are in lowercase

0 commit comments

Comments
 (0)