Commit e793e58
* fix: env() TypeError for non-string $_SERVER values + esc() fixes
- env(): guard non-string values (int argc, array argv in CLI) before
strtolower() to prevent TypeError under declare(strict_types=1)
- esc(): propagate $encoding in recursive array calls (was ignored before),
add early return after array processing, replace single static $escaper
with static $escapers[] cache keyed by encoding
- tests: data-provider test for env() non-string types,
three tests for esc() foreach reference leak
* Apply suggestion from @michalsn
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
* Apply suggestion from @michalsn
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
* Update system/Common.php
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
* style: cs-fix
* test: add tests for esc() encoding changes and update changelog
* Update tests/system/CommonFunctionsTest.php
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
* docs: move env/esc fix changelog entry to v4.7.4.rst
* docs: split Common changelog entry
---------
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
1 parent 32eeb5d commit e793e58
3 files changed
Lines changed: 69 additions & 8 deletions
File tree
- system
- tests/system
- user_guide_src/source/changelogs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
419 | 425 | | |
420 | 426 | | |
421 | 427 | | |
| |||
459 | 465 | | |
460 | 466 | | |
461 | 467 | | |
462 | | - | |
| 468 | + | |
463 | 469 | | |
| 470 | + | |
| 471 | + | |
464 | 472 | | |
465 | 473 | | |
466 | 474 | | |
| |||
470 | 478 | | |
471 | 479 | | |
472 | 480 | | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
| 481 | + | |
| 482 | + | |
477 | 483 | | |
478 | | - | |
479 | | - | |
| 484 | + | |
| 485 | + | |
480 | 486 | | |
481 | 487 | | |
482 | | - | |
| 488 | + | |
483 | 489 | | |
484 | 490 | | |
485 | 491 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
134 | 171 | | |
135 | 172 | | |
136 | 173 | | |
| |||
276 | 313 | | |
277 | 314 | | |
278 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
279 | 332 | | |
280 | 333 | | |
281 | 334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
0 commit comments