mirror of
https://github.com/php/php-langspec.git
synced 2026-03-24 23:32:10 +01:00
- Redundant final newlines trimmed into one - Missing final newlines added where can be added According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character although not mandatory. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
7.1 KiB
7.1 KiB
| 1 | 1 | introduction |
|---|---|---|
| 2 | 2 | conformance |
| 3 | 3 | terms-and-definitions |
| 4 | 4 | basic-concepts |
| 5 | 4.1 | program-structure |
| 6 | 4.2 | program-start-up |
| 7 | 4.3 | program-termination |
| 8 | 4.4 | the-memory-model |
| 9 | 4.4.1 | general |
| 10 | 4.4.2 | reclamation-and-automatic-memory-management |
| 11 | 4.4.3 | assignment |
| 12 | 4.4.3.1 | general-1 |
| 13 | 4.4.3.2 | value-assignment-of-scalar-types-to-a-local-variable |
| 14 | 4.4.3.3 | value-assignment-of-object-and-resource-types-to-a-local-variable |
| 15 | 4.4.3.4 | byref-assignment-for-scalar-types-with-local-variables |
| 16 | 4.4.3.5 | byref-assignment-of-non-scalar-types-with-local-variables |
| 17 | 4.4.3.6 | value-assignment-of-array-types-to-local-variables |
| 18 | 4.4.3.7 | deferred-array-copying |
| 19 | 4.4.3.8 | general-value-assignment |
| 20 | 4.4.3.9 | general-byref-assignment |
| 21 | 4.4.4 | argument-passing |
| 22 | 4.4.5 | value-returning |
| 23 | 4.4.6 | cloning-objects |
| 24 | 4.5 | scope |
| 25 | 4.6 | storage-duration |
| 26 | 5 | types |
| 27 | 5.1 | general-2 |
| 28 | 5.2 | scalar-types |
| 29 | 5.2.1 | general-3 |
| 30 | 5.2.2 | the-boolean-type |
| 31 | 5.2.3 | the-integer-type |
| 32 | 5.2.4 | the-floating-point-type |
| 33 | 5.2.5 | the-string-type |
| 34 | 5.2.6 | the-null-type |
| 35 | 5.3 | composite-types |
| 36 | 5.3.1 | array-types |
| 37 | 5.3.2 | object-types |
| 38 | 5.3.3 | resource-types |
| 39 | 6 | constants |
| 40 | 6.1 | general-4 |
| 41 | 6.2 | context-dependent-constants |
| 42 | 6.3 | core-predefined-constants |
| 43 | 6.4 | user-defined-constants |
| 44 | 7 | variables |
| 45 | 7.1 | general-5 |
| 46 | 7.2 | kinds-of-variables |
| 47 | 7.2.1 | constants-1 |
| 48 | 7.2.2 | local-variables |
| 49 | 7.2.3 | array-elements |
| 50 | 7.2.4 | function-statics |
| 51 | 7.2.5 | global-variables |
| 52 | 7.2.6 | instance-properties |
| 53 | 7.2.7 | static-properties |
| 54 | 7.2.8 | class-and-interface-constants |
| 55 | 7.3 | predefined-variables |
| 56 | 8 | conversions |
| 57 | 8.1 | general-6 |
| 58 | 8.2 | converting-to-boolean-type |
| 59 | 8.3 | converting-to-integer-type |
| 60 | 8.4 | converting-to-floating-point-type |
| 61 | 8.5 | converting-to-string-type |
| 62 | 8.6 | converting-to-array-type |
| 63 | 8.7 | converting-to-object-type |
| 64 | 9 | lexical-structure |
| 65 | 9.1 | scripts |
| 66 | 9.2 | grammars |
| 67 | 9.3 | lexical-analysis |
| 68 | 9.3.1 | general-7 |
| 69 | 9.3.2 | comments |
| 70 | 9.3.3 | white-space |
| 71 | 9.3.4 | tokens |
| 72 | 9.3.4.1 | general-8 |
| 73 | 9.3.4.2 | names |
| 74 | 9.3.4.3 | keywords |
| 75 | 9.3.4.4 | literals |
| 76 | 9.3.4.4.1 | general-9 |
| 77 | 9.3.4.4.2 | boolean-literals |
| 78 | 9.3.4.4.3 | integer-literals |
| 79 | 9.3.4.4.4 | floating-point-literals |
| 80 | 9.3.4.4.5 | string-literals |
| 81 | 9.3.4.4.5.1 | single-quoted-string-literals |
| 82 | 9.3.4.4.5.2 | double-quoted-string-literals |
| 83 | 9.3.4.4.5.3 | heredoc-string-literals |
| 84 | 9.3.4.4.5.4 | nowdoc-string-literals |
| 85 | 9.3.4.4.6 | the-null-literal |
| 86 | 9.3.4.5 | operators-and-punctuators |
| 87 | 10 | expressions |
| 88 | 10.1 | general-10 |
| 89 | 10.2 | primary-expressions |
| 90 | 10.2.1 | general-11 |
| 91 | 10.2.2 | intrinsics |
| 92 | 10.2.2.1 | general-12 |
| 93 | 10.2.2.2 | array |
| 94 | 10.2.2.3 | echo |
| 95 | 10.2.2.4 | empty |
| 96 | 10.2.2.5 | eval |
| 97 | 10.2.2.6 | exitdie |
| 98 | 10.2.2.7 | isset |
| 99 | 10.2.2.8 | list |
| 100 | 10.2.2.9 | |
| 101 | 10.2.2.10 | unset |
| 102 | 10.2.3 | anonymous-function-creation |
| 103 | 10.3 | postfix-operators |
| 104 | 10.3.1 | general-13 |
| 105 | 10.3.2 | the-clone-operator |
| 106 | 10.3.3 | the-new-operator |
| 107 | 10.3.4 | array-creation-operator |
| 108 | 10.3.5 | subscript-operator |
| 109 | 10.3.6 | function-call-operator |
| 110 | 10.3.7 | member-selection-operator |
| 111 | 10.3.8 | postfix-increment-and-decrement-operators |
| 112 | 10.3.9 | scope-resolution-operator |
| 113 | 10.3.10 | exponentiation-operator |
| 114 | 10.4 | unary-operators |
| 115 | 10.4.1 | general-14 |
| 116 | 10.4.2 | prefix-increment-and-decrement-operators |
| 117 | 10.4.3 | unary-arithmetic-operators |
| 118 | 10.4.4 | error-control-operator |
| 119 | 10.4.5 | shell-command-operator |
| 120 | 10.4.6 | cast-operator |
| 121 | 10.4.7 | variable-name-creation-operator |
| 122 | 10.5 | instanceof-operator |
| 123 | 10.6 | multiplicative-operators |
| 124 | 10.7 | additive-operators |
| 125 | 10.8 | bitwise-shift-operators |
| 126 | 10.9 | relational-operators |
| 127 | 10.10 | equality-operators |
| 128 | 10.11 | bitwise-and-operator |
| 129 | 10.12 | bitwise-exclusive-or-operator |
| 130 | 10.13 | bitwise-inclusive-or-operator |
| 131 | 10.14 | logical-and-operator-form-1 |
| 132 | 10.15 | logical-inclusive-or-operator-form-1 |
| 133 | 10.16 | conditional-operator |
| 134 | 10.17 | assignment-operators |
| 135 | 10.17.1 | general-15 |
| 136 | 10.17.2 | simple-assignment |
| 137 | 10.17.3 | byref-assignment |
| 138 | 10.17.4 | compound-assignment |
| 139 | 10.18 | logical-and-operator-form-2 |
| 140 | 10.19 | logical-exclusive-or-operator |
| 141 | 10.20 | logical-inclusive-or-operator-form-2 |
| 142 | 10.21 | yield-operator |
| 143 | 10.22 | script-inclusion-operators |
| 144 | 10.22.1 | general-16 |
| 145 | 10.22.2 | the-include-operator |
| 146 | 10.22.3 | the-include_once-operator |
| 147 | 10.22.4 | the-require-operator |
| 148 | 10.22.5 | the-require_once-operator |
| 149 | 10.23 | constant-expressions |
| 150 | 11 | statements |
| 151 | 11.1 | general-17 |
| 152 | 11.2 | compound-statements |
| 153 | 11.3 | labeled-statements |
| 154 | 11.4 | expression-statements |
| 155 | 11.5 | selection-statements |
| 156 | 11.5.1 | general-18 |
| 157 | 11.5.2 | the-if-statement |
| 158 | 11.5.3 | the-switch-statement |
| 159 | 11.6 | iteration-statements |
| 160 | 11.6.1 | general-19 |
| 161 | 11.6.2 | the-while-statement |
| 162 | 11.6.3 | the-do-statement |
| 163 | 11.6.4 | the-for-statement |
| 164 | 11.6.5 | the-foreach-statement |
| 165 | 11.7 | jump-statements |
| 166 | 11.7.1 | general-20 |
| 167 | 11.7.2 | the-goto-statement |
| 168 | 11.7.3 | the-continue-statement |
| 169 | 11.7.4 | the-break-statement |
| 170 | 11.7.5 | the-return-statement |
| 171 | 11.7.6 | the-throw-statement |
| 172 | 11.8 | the-try-statement |
| 173 | 11.9 | the-declare-statement |
| 174 | 12 | arrays |
| 175 | 12.1 | general-21 |
| 176 | 12.2 | array-creation-and-initialization |
| 177 | 12.3 | element-access-and-insertion |
| 178 | 13 | functions |
| 179 | 13.1 | general-22 |
| 180 | 13.2 | function-calls |
| 181 | 13.3 | function-definitions |
| 182 | 13.4 | variable-functions |
| 183 | 13.5 | anonymous-functions |
| 184 | 14 | classes |
| 185 | 14.1 | general-23 |
| 186 | 14.2 | class-declarations |
| 187 | 14.3 | class-members |
| 188 | 14.4 | dynamic-members |
| 189 | 14.5 | constants-2 |
| 190 | 14.6 | properties |
| 191 | 14.7 | methods |
| 192 | 14.8 | constructors |
| 193 | 14.9 | destructors |
| 194 | 14.10 | methods-with-special-semantics |
| 195 | 14.10.1 | general-24 |
| 196 | 14.10.2 | method-__call |
| 197 | 14.10.3 | method-__callstatic |
| 198 | 14.10.4 | method-__clone |
| 199 | 14.10.5 | method-__get |
| 200 | 14.10.6 | method-__invoke |
| 201 | 14.10.7 | method-__isset |
| 202 | 14.10.8 | method-__set |
| 203 | 14.10.9 | method-__set_state |
| 204 | 14.10.10 | method-__sleep |
| 205 | 14.10.11 | method-__tostring |
| 206 | 14.10.12 | method-__unset |
| 207 | 14.10.13 | method-__wakeup |
| 208 | 14.11 | serialization |
| 209 | 14.12 | predefined-classes |
| 210 | 14.12.1 | class-closure |
| 211 | 14.12.2 | class-generator |
| 212 | 14.12.3 | class-__php_incomplete_class |
| 213 | 14.12.4 | class-stdclass |
| 214 | 15 | interfaces |
| 215 | 15.1 | general-25 |
| 216 | 15.2 | interface-declarations |
| 217 | 15.3 | interface-members |
| 218 | 15.4 | constants-3 |
| 219 | 15.5 | methods-1 |
| 220 | 15.6 | predefined-interfaces |
| 221 | 15.6.1 | interface-arrayaccess |
| 222 | 15.6.2 | interface-iterator |
| 223 | 15.6.3 | interface-iteratoraggregate |
| 224 | 15.6.4 | interface-traversable |
| 225 | 15.6.5 | interface--serializable |
| 226 | 16 | traits |
| 227 | 16.1 | general-26 |
| 228 | 16.2 | trait-declarations |
| 229 | 16.3 | trait-members |
| 230 | 17 | exception-handling |
| 231 | 17.1 | general-27 |
| 232 | 17.2 | class-exception |
| 233 | 17.3 | tracing-exceptions |
| 234 | 17.4 | user-defined-exception-classes |
| 235 | 18 | namespaces |
| 236 | 18.1 | general-28 |
| 237 | 18.2 | name-lookup |
| 238 | 18.3 | defining-namespaces |
| 239 | 18.4 | namespace-use-declarations |
| 240 | A | grammar |
| 241 | A.1 | general-29 |
| 242 | A.2 | lexical-grammar |
| 243 | A.2.1 | general-30 |
| 244 | A.2.2 | comments-1 |
| 245 | A.2.3 | white-space-1 |
| 246 | A.2.4 | tokens-1 |
| 247 | A.2.4.1 | general-31 |
| 248 | A.2.4.2 | names-1 |
| 249 | A.2.5 | keywords-1 |
| 250 | A.2.6 | literals-1 |
| 251 | A.2.6.1 | general-32 |
| 252 | A.2.6.2 | boolean-literals-1 |
| 253 | A.2.6.3 | integer-literals-1 |
| 254 | A.2.6.4 | floating-point-literals-1 |
| 255 | A.2.6.5 | string-literals-1 |
| 256 | A.2.6.6 | the-null-literal-1 |
| 257 | A.2.7 | operators-and-punctuators-1 |
| 258 | A.3 | syntactic-grammar |
| 259 | A.3.1 | program-structure-1 |
| 260 | A.3.2 | variables-1 |
| 261 | A.3.3 | expressions-1 |
| 262 | A.3.3.1 | primary-expressions-1 |
| 263 | A.3.3.2 | postfix-operators-1 |
| 264 | A.3.3.3 | unary-operators-1 |
| 265 | A.3.3.4 | instanceof-operator |
| 266 | A.3.3.5 | multiplicative-operators-1 |
| 267 | A.3.3.6 | additive-operators-1 |
| 268 | A.3.3.7 | bitwise-shift-operators-1 |
| 269 | A.3.3.8 | relational-operators-1 |
| 270 | A.3.3.9 | equality-operators-1 |
| 271 | A.3.3.10 | bitwise-logical-operators |
| 272 | A.3.3.11 | logical-operators-form-1 |
| 273 | A.3.3.12 | conditional-operator-1 |
| 274 | A.3.3.13 | assignment-operators-1 |
| 275 | A.3.3.14 | logical-operators-form-2 |
| 276 | A.3.3.15 | yield-operator |
| 277 | A.3.3.16 | script-inclusion-operators-1 |
| 278 | A.3.3.17 | constant-expressions-1 |
| 279 | A.3.4 | statements-1 |
| 280 | A.3.4.1 | general-33 |
| 281 | A.3.4.2 | compound-statements-1 |
| 282 | A.3.4.3 | labeled-statements-1 |
| 283 | A.3.4.4 | expression-statements-1 |
| 284 | A.3.4.5 | iteration-statements-1 |
| 285 | A.3.4.6 | jump-statements-1 |
| 286 | A.3.4.7 | the-try-statement |
| 287 | A.3.4.8 | the-declare-statement |
| 288 | A.3.5 | functions-1 |
| 289 | A.3.6 | classes-1 |
| 290 | A.3.7 | interfaces-1 |
| 291 | A.3.8 | traits-1 |
| 292 | A.3.9 | namespaces-1 |
| 293 | Bibliography | bibliography |