Skip to content

Commit f507da9

Browse files
authored
[ci skip] Clarify usage of C99 standard (#14993)
This is mostly about mentioning that VLAs which are a required part of C99 conforming implementations (although made optional in the C11 standard) *must* *not* be used in php-src.
1 parent 223683d commit f507da9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

CODING_STANDARDS.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ rewritten to comply with these rules.
99

1010
1. Document your code in source files and the manual. (tm)
1111

12-
1. PHP is implemented in C99. The optional fixed-width integers from
12+
1. PHP is implemented in C99.
13+
For instance, the optional fixed-width integers from
1314
stdint.h (int8_t, int16_t, int32_t, int64_t and their unsigned
14-
counterparts) must be available.
15+
counterparts) are supposed to be available.
16+
However, some features (most notably variable-length arrays) which are not
17+
supported by all relevant compilers, must not be used.
1518

1619
1. Functions that are given pointers to resources should not free them.
1720

0 commit comments

Comments
 (0)