/ [cvs] / php-src / CODING_STANDARDS
ViewVC logotype

Log of /php-src/CODING_STANDARDS

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Tag:

Revision 1.32.4.3.2.1.2.3 - (view) (download) (annotate) - [select for diffs]
Sat Nov 24 13:55:27 2007 UTC (10 months, 1 week ago) by lsmith
Branch: PHP_5_3
CVS Tags: php_5_3_0alpha1, php_5_3_0alpha2
Changes since 1.32.4.3.2.1.2.2: +1 -1 lines
Diff to previous 1.32.4.3.2.1.2.2 , to branch point 1.32.4.3.2.1
- MFH

Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Sat Nov 24 13:55:20 2007 UTC (10 months, 1 week ago) by lsmith
Branch: MAIN
CVS Tags: HEAD
Changes since 1.38: +1 -1 lines
Diff to previous 1.38
- fixed unexpected emphasis in reST parsing due to use of *

Revision 1.32.4.3.2.1.2.2 - (view) (download) (annotate) - [select for diffs]
Sun Nov 11 22:12:06 2007 UTC (10 months, 3 weeks ago) by lsmith
Branch: PHP_5_3
Changes since 1.32.4.3.2.1.2.1: +2 -2 lines
Diff to previous 1.32.4.3.2.1.2.1 , to branch point 1.32.4.3.2.1
- MFH typo fix by Jon

Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Sun Nov 11 20:27:25 2007 UTC (10 months, 3 weeks ago) by jon
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37
s/Ident/Indent

Revision 1.32.4.3.2.1.2.1 - (view) (download) (annotate) - [select for diffs]
Sun Nov 11 16:30:35 2007 UTC (10 months, 3 weeks ago) by lsmith
Branch: PHP_5_3
Changes since 1.32.4.3.2.1: +91 -91 lines
Diff to previous 1.32.4.3.2.1
- MFH

Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Sun Nov 11 16:29:54 2007 UTC (10 months, 3 weeks ago) by lsmith
Branch: MAIN
Changes since 1.36: +90 -90 lines
Diff to previous 1.36
- migrate syntax to rEST to allow html/docbook rendering

Revision 1.32.4.3.2.1 - (view) (download) (annotate) - [select for diffs]
Wed Jul 18 23:10:33 2007 UTC (14 months, 2 weeks ago) by iliaa
Branch: PHP_5_2
CVS Tags: BEFORE_IMPORT_OF_MYSQLND_IN_5_3, php_5_2_4, php_5_2_4RC1, php_5_2_4RC2, php_5_2_4RC3, php_5_2_5, php_5_2_5RC1, php_5_2_5RC2, php_5_2_6, php_5_2_6RC1, php_5_2_6RC2, php_5_2_6RC3, php_5_2_6RC4, php_5_2_6RC5
Branch point for: PHP_5_3
Changes since 1.32.4.3: +1 -1 lines
Diff to previous 1.32.4.3
Fixed typo

Revision 1.32.4.3 - (view) (download) (annotate) - [select for diffs]
Thu Dec 22 20:27:11 2005 UTC (2 years, 9 months ago) by helly
Branch: PHP_5_1
CVS Tags: php_5_1_2, php_5_1_2RC2, php_5_1_3, php_5_1_3RC1, php_5_1_3RC2, php_5_1_3RC3, php_5_1_4, php_5_1_5, php_5_1_5RC1, php_5_1_6, php_5_2_0, php_5_2_0RC1, php_5_2_0RC2, php_5_2_0RC3, php_5_2_0RC4, php_5_2_0RC5, php_5_2_0RC6, php_5_2_1, php_5_2_1RC1, php_5_2_1RC2, php_5_2_1RC3, php_5_2_1RC4, php_5_2_2, php_5_2_2RC1, php_5_2_2RC2, php_5_2_3, php_5_2_3RC1
Branch point for: PHP_5_2
Changes since 1.32.4.2: +1 -1 lines
Diff to previous 1.32.4.2 , to branch point 1.32 , to next main 1.39
\# Damn !

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Thu Dec 22 20:27:03 2005 UTC (2 years, 9 months ago) by helly
Branch: MAIN
CVS Tags: BEFORE_IMPORT_OF_MYSQLND, BEFORE_NEW_OUTPUT_API, BEFORE_REAL_IMPORT_OF_MYSQLND, RELEASE_1_0_4
Changes since 1.35: +1 -1 lines
Diff to previous 1.35
\# Damn !

Revision 1.32.4.2 - (view) (download) (annotate) - [select for diffs]
Thu Dec 22 20:24:46 2005 UTC (2 years, 9 months ago) by helly
Branch: PHP_5_1
Changes since 1.32.4.1: +6 -0 lines
Diff to previous 1.32.4.1 , to branch point 1.32
- MFH Point to README.TESTING

Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Thu Dec 22 20:24:38 2005 UTC (2 years, 9 months ago) by helly
Branch: MAIN
Changes since 1.34: +7 -1 lines
Diff to previous 1.34
- Point to README.TESTING

Revision 1.32.4.1 - (view) (download) (annotate) - [select for diffs]
Sun Nov 27 11:06:07 2005 UTC (2 years, 10 months ago) by helly
Branch: PHP_5_1
CVS Tags: php_5_1_1, php_5_1_2RC1
Changes since 1.32: +6 -7 lines
Diff to previous 1.32
- MFH Synch with what we decided for 5 and what we are practicing since 5

Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Sat Nov 26 12:33:42 2005 UTC (2 years, 10 months ago) by helly
Branch: MAIN
Changes since 1.33: +0 -1 lines
Diff to previous 1.33
- Oversight

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Sat Nov 26 12:25:58 2005 UTC (2 years, 10 months ago) by helly
Branch: MAIN
Changes since 1.32: +7 -7 lines
Diff to previous 1.32
- Synch with what we decided for 5 and what we are practicing since 5

Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Fri Jan 30 10:15:24 2004 UTC (4 years, 8 months ago) by wez
Branch: MAIN
CVS Tags: BEFORE_UNICODE_MERGE, PRE_NEW_OCI8_EXTENSION, PRE_NEW_VM_GEN_PATCH, php_5_0_0, php_5_0_0RC1, php_5_0_0RC1RC1, php_5_0_0RC1RC2, php_5_0_0RC2, php_5_0_0RC2RC1, php_5_0_0RC2RC2, php_5_0_0RC3, php_5_0_0RC3RC1, php_5_0_0RC3RC2, php_5_0_0RC4, php_5_0_0b4, php_5_0_0b4RC1, php_5_0_1, php_5_0_1RC1, php_5_0_1RC2, php_5_0_1b1, php_5_0_2, php_5_0_2RC1, php_5_0_3, php_5_0_3RC1, php_5_0_3RC2, php_5_0_4, php_5_0_4RC1, php_5_0_4RC2, php_5_0_5, php_5_0_5RC1, php_5_0_5RC2, php_5_1_0, php_5_1_0RC1, php_5_1_0RC2, php_5_1_0RC2_PRE, php_5_1_0RC3, php_5_1_0RC4, php_5_1_0RC5, php_5_1_0RC6, php_5_1_0b1, php_5_1_0b2, php_5_1_0b3
Branch point for: PHP_5_0, PHP_5_1
Changes since 1.31: +1 -1 lines
Diff to previous 1.31
word fix

Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Fri Jan 30 07:53:12 2004 UTC (4 years, 8 months ago) by helly
Branch: MAIN
Changes since 1.30: +3 -2 lines
Diff to previous 1.30
Include Sascha's indendation hint

Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Fri Jan 30 07:01:25 2004 UTC (4 years, 8 months ago) by helly
Branch: MAIN
Changes since 1.29: +3 -0 lines
Diff to previous 1.29
Newer compilers don't need this so many people don't know. Hence we make
it a coding standard.

Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Mon Jan 26 12:37:48 2004 UTC (4 years, 8 months ago) by sebastian
Branch: MAIN
Changes since 1.28: +1 -1 lines
Diff to previous 1.28
Update URL.

Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Wed Jan 21 20:18:09 2004 UTC (4 years, 8 months ago) by helly
Branch: MAIN
Changes since 1.27: +16 -1 lines
Diff to previous 1.27
All technical reasons that prevented us from studlyCaps are solved
and all current extensions as well as the whole PEAR framework follow
this rule. So for consistency i readd it.
# Also we had the discussion onece and decided for this.
# Lookup the archieves

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Wed Dec 3 09:12:38 2003 UTC (4 years, 10 months ago) by derick
Branch: MAIN
CVS Tags: php_5_0_0b3, php_5_0_0b3RC1, php_5_0_0b3RC2
Changes since 1.26: +1 -16 lines
Diff to previous 1.26
- I am sure I reverted this before

Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Fri May 23 10:38:43 2003 UTC (5 years, 4 months ago) by derick
Branch: MAIN
CVS Tags: BEFORE_ARG_INFO, php_5_0_0b1, php_5_0_0b2, php_5_0_0b2RC1
Changes since 1.25: +31 -3 lines
Diff to previous 1.25
- Update codinf standards with the posted RFC (results from PEAR Meeting)

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Fri Apr 4 17:01:09 2003 UTC (5 years, 6 months ago) by sterling
Branch: MAIN
Changes since 1.24: +5 -59 lines
Diff to previous 1.24
both these entries are bad, and were never agreed upon.
assert() usage is a controversial concept at best.
docref() is something quite a few of us strong disagree with.  suspending
this until further discussion.

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Tue Oct 29 20:25:09 2002 UTC (5 years, 11 months ago) by helly
Branch: MAIN
CVS Tags: BEFORE_FD_REAPPLY, BEFORE_FD_REVERT, PHP_4_3_before_13561_fix, PHP_5_0_dev_before_13561_fix, php4/CREDITS, php_4_3_0, php_4_3_0RC1, php_4_3_0RC2, php_4_3_0RC3, php_4_3_0RC4, php_4_3_1, php_4_3_10, php_4_3_10RC1, php_4_3_10RC2, php_4_3_11, php_4_3_11RC1, php_4_3_11RC2, php_4_3_2, php_4_3_2RC1, php_4_3_2RC2, php_4_3_2RC3, php_4_3_2RC4, php_4_3_3, php_4_3_3RC1, php_4_3_3RC2, php_4_3_3RC3, php_4_3_3RC4, php_4_3_4, php_4_3_4RC1, php_4_3_4RC2, php_4_3_4RC3, php_4_3_5, php_4_3_5RC1, php_4_3_5RC2, php_4_3_5RC3, php_4_3_5RC4, php_4_3_6, php_4_3_6RC1, php_4_3_6RC2, php_4_3_6RC3, php_4_3_7, php_4_3_7RC1, php_4_3_8, php_4_3_9, php_4_3_9RC1, php_4_3_9RC2, php_4_3_9RC3, php_4_4_0, php_4_4_0RC1, php_4_4_0RC2, php_4_4_1, php_4_4_1RC1, php_4_4_2, php_4_4_2RC1, php_4_4_2RC2, php_4_4_3, php_4_4_3RC1, php_4_4_3RC2, php_4_4_4, php_4_4_4RC1, php_4_4_5, php_4_4_5RC1, php_4_4_5RC2, php_4_4_6, php_4_4_6RC1, php_4_4_7, php_4_4_7RC1, php_4_4_8, php_4_4_8RC1, php_4_4_9, php_4_4_9RC1
Branch point for: PHP_4, PHP_4_3, PHP_4_3_0, PHP_4_3_1, PHP_4_3_2, PHP_4_3_7, PHP_4_4
Changes since 1.23: +2 -2 lines
Diff to previous 1.23
rewrite paragraph 9
No instances yet. And it does not work with #if 0_FOO but with #if FOO_0

Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Thu Oct 10 17:03:49 2002 UTC (5 years, 11 months ago) by jon
Branch: MAIN
CVS Tags: php_4_3_0pre2
Changes since 1.22: +13 -0 lines
Diff to previous 1.22
Adding a new item (number 11) that explains why it's important to use
emalloc() and friends in place of the standard C library functions.

Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Mon Sep 9 07:54:11 2002 UTC (6 years ago) by derick
Branch: MAIN
CVS Tags: php_4_3_0pre1
Changes since 1.21: +8 -8 lines
Diff to previous 1.21
- spaces instead of tabs

Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Mon Sep 9 07:52:39 2002 UTC (6 years ago) by derick
Branch: MAIN
Changes since 1.20: +6 -5 lines
Diff to previous 1.20
- Use PHP_ instead of ZEND_

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Sun Sep 8 23:00:31 2002 UTC (6 years ago) by jon
Branch: MAIN
Changes since 1.19: +5 -3 lines
Diff to previous 1.19
Reword item 10 for greater clarity.

Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Sun Sep 8 22:38:57 2002 UTC (6 years ago) by yohgaki
Branch: MAIN
Changes since 1.18: +6 -2 lines
Diff to previous 1.18
It seems we're better to mention about missing functions.
PHP_FUNCTION -> ZEND_FUNCTION

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Thu Aug 22 14:04:01 2002 UTC (6 years, 1 month ago) by helly
Branch: MAIN
Branch point for: new_apache_hooks
Changes since 1.17: +4 -4 lines
Diff to previous 1.17
fix examples
#did i write those? shame on me for not knowing my own functions

Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Tue Aug 13 21:44:59 2002 UTC (6 years, 1 month ago) by kalowsky
Branch: MAIN
CVS Tags: php_4_3_0_dev_zend2_alpha3
Changes since 1.16: +5 -0 lines
Diff to previous 1.16
As per the suggestion on php-dev, now please #ifdef 0_<username here>

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Tue Aug 13 20:55:42 2002 UTC (6 years, 1 month ago) by helly
Branch: MAIN
Changes since 1.15: +4 -4 lines
Diff to previous 1.15
-better use external example
-say NULL is intended
-correct example
#hope this is a bit easier to understand and clears it a bit

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Tue Aug 13 09:42:51 2002 UTC (6 years, 1 month ago) by helly
Branch: MAIN
Changes since 1.14: +38 -9 lines
Diff to previous 1.14
comments & php_error_docref

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Thu Aug 8 11:22:18 2002 UTC (6 years, 2 months ago) by mfischer
Branch: MAIN
Changes since 1.13: +7 -0 lines
Diff to previous 1.13
- Add note how php_error() messages SHOULD (rfc2119) look like.

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Tue Mar 19 09:13:45 2002 UTC (6 years, 6 months ago) by yohgaki
Branch: MAIN
CVS Tags: dev/, php5_5_0, php_4_3_0_dev_zend2_alpha1, php_4_3_0dev
Changes since 1.12: +7 -0 lines
Diff to previous 1.12
Added README.SUBMITTING_PATCH file. Please fix/add/change.
Added more description for use of assert().

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Thu Mar 14 03:25:46 2002 UTC (6 years, 6 months ago) by elixer
Branch: MAIN
Changes since 1.11: +5 -5 lines
Diff to previous 1.11
Translate to English.
# I still don't know what a 'tag search' is...

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Thu Mar 14 02:17:22 2002 UTC (6 years, 6 months ago) by yohgaki
Branch: MAIN
Changes since 1.10: +3 -0 lines
Diff to previous 1.10
Include/enable assert.h/assert() when it is available

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Thu Feb 28 06:31:09 2002 UTC (6 years, 7 months ago) by yohgaki
Branch: MAIN
CVS Tags: php_4_2_0, php_4_2_0RC1, php_4_2_0RC2, php_4_2_0RC3, php_4_2_0RC4, php_4_2_1, php_4_2_1RC1, php_4_2_1RC2, php_4_2_2, php_4_2_3, php_4_2_3RC1, php_4_2_3RC2
Branch point for: PHP_4_2_0, PHP_4_2_2
Changes since 1.9: +3 -0 lines
Diff to previous 1.9
Recommend ZEND_* macro over PHP_* macro as discussed in php-dev.

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Fri Jan 4 13:14:53 2002 UTC (6 years, 9 months ago) by hholzgra
Branch: MAIN
Changes since 1.8: +2 -0 lines
Diff to previous 1.8
small clarification

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Sun Oct 14 09:24:37 2001 UTC (6 years, 11 months ago) by eschmid
Branch: MAIN
CVS Tags: ChangeLog
Changes since 1.7: +8 -8 lines
Diff to previous 1.7
Fixed some spelling errors.

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Tue Jun 5 13:11:57 2001 UTC (7 years, 4 months ago) by rasmus
Branch: MAIN
CVS Tags: POST_SUBST_Z_MACROS, PRE_SUBST_Z_MACROS, PRE_TSRM_MERGE_PATCH, php4, php_4_0_7RC1, php_4_0_7RC2, php_4_0_7RC3, php_4_1_0, php_4_1_0RC1, php_4_1_0RC2, php_4_1_0RC3, php_4_1_0RC4, php_4_1_0RC5, php_4_1_1, php_4_1_2
Branch point for: PHP_4_0_7
Changes since 1.6: +4 -5 lines
Diff to previous 1.6
vim-6 does folding - clean up a bunch of missing folding tags plus
some misguided RINIT and RSHUTDOWN calls in a few fringe extensions

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Tue Dec 19 06:22:07 2000 UTC (7 years, 9 months ago) by ronabop
Branch: MAIN
CVS Tags: php_4_0_5, php_4_0_5RC1, php_4_0_5RC2, php_4_0_5RC3, php_4_0_5RC4, php_4_0_5RC5, php_4_0_5RC6, php_4_0_5RC7, php_4_0_5RC8, php_4_0_6, php_4_0_6RC1, php_4_0_6RC2, php_4_0_6RC3, php_4_0_6RC4
Branch point for: PHP_4_0_5, PHP_4_0_6
Changes since 1.5: +40 -7 lines
Diff to previous 1.5
Updated to reflect recent discussions on php-dev.

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Sun Nov 26 21:45:44 2000 UTC (7 years, 10 months ago) by jon
Branch: MAIN
CVS Tags: php_4_0_4RC3, php_4_0_4RC4, php_4_0_4RC5, php_4_0_4RC6, php_4_0_4REL, php_4_0_4pl1, php_4_0_4pl1RC1, php_4_0_4pl1RC2
Branch point for: php_4_0_4
Changes since 1.4: +15 -7 lines
Diff to previous 1.4
Added a brief section documenting the preference of tabs over spaces.
There are a few touch-ups in this commit, too.

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Wed Oct 18 07:34:56 2000 UTC (7 years, 11 months ago) by ronabop
Branch: MAIN
Changes since 1.3: +7 -13 lines
Diff to previous 1.3
As per andi, similar names are for legacy reasons only.

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Wed Oct 18 03:00:07 2000 UTC (7 years, 11 months ago) by ronabop
Branch: MAIN
Changes since 1.2: +40 -4 lines
Diff to previous 1.2
Updated naming standards as per 9/12 dev/doc discussion.

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Sun Sep 10 21:07:18 2000 UTC (8 years ago) by sterling
Branch: MAIN
CVS Tags: php_4_0_3, php_4_0_3RC1, php_4_0_3RC2
Changes since 1.1: +8 -9 lines
Diff to previous 1.1
php4ize a bit.
fix a little bit of grammar.

Revision 1.1.1.1 - (view) (download) (annotate) - [select for diffs] (vendor branch)
Wed Apr 7 21:00:23 1999 UTC (9 years, 6 months ago) by zeev
Branch: PHP_DEV_TEAM
CVS Tags: BEFORE_BIG_SYMBOL_CHANGE, BEFORE_NEW_OPERATOR_FIX, BEFORE_PHP4_APACHE_MODULE_CHANGE, BEFORE_PRE_SHUTDOWN_REVERSE_PATCH, BEFORE_REMOVING_AI_COUNT_FINAL_STEP, BEFORE_REMOVING_GC_STEP1, BEFORE_SAPIFICATION_FEB_10_2000, BEFORE_SAPI_POST_PATCH_17_FEB_2000, BEFORE_STACK_PATCH, CLOSED_BETA, PRE_FILE_COMPILE_API_CHANGE, PRE_ISSET_TYPE, PRE_LIBZEND_TO_ZEND, PRE_USED_RETURN_VALUE_PATCH, before-sapi-split, php_4_0RC1, php_4_0RC2, php_4_0_0, php_4_0_1, php_4_0_1RC, php_4_0_1RC2, php_4_0_1pl1, php_4_0_2, php_4_0_2RC1, php_4_0b1, php_4_0b2, php_4_0b2-1, php_4_0b2-2, php_4_0b3, php_4_0b3_RC2, php_4_0b3_RC3, php_4_0b3_RC4, php_4_0b3_RC5, php_4_0b4, php_4_0b4_rc1, php_4_0b4pl1
Branch point for: newoperator
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 , to next main 1.39
PHP 4.0

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Wed Apr 7 21:00:23 1999 UTC (9 years, 6 months ago) by zeev
Branch: MAIN
Branch point for: PHP_DEV_TEAM
Initial revision

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and