Commit ea387fc
authored
Avoid useless initializations of fci/fcc in array functions (#18273)
These cause cache misses due to global access, in phpstan
(notably the array_map).
Initializing these isn't necessary because ZPP initializes it for us.
Only for optional arguments do we need to be careful; for `array_filter`
we still reset the `fci` but not `fci_cache` because `fci` is not
necessarily set by ZPP but is conditionally used to access `fci_cache`.1 parent 93a3256 commit ea387fc
1 file changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6439 | 6439 | | |
6440 | 6440 | | |
6441 | 6441 | | |
6442 | | - | |
| 6442 | + | |
6443 | 6443 | | |
6444 | 6444 | | |
6445 | 6445 | | |
| |||
6515 | 6515 | | |
6516 | 6516 | | |
6517 | 6517 | | |
6518 | | - | |
| 6518 | + | |
6519 | 6519 | | |
6520 | 6520 | | |
6521 | 6521 | | |
| |||
6649 | 6649 | | |
6650 | 6650 | | |
6651 | 6651 | | |
6652 | | - | |
| 6652 | + | |
6653 | 6653 | | |
6654 | 6654 | | |
6655 | 6655 | | |
| |||
6665 | 6665 | | |
6666 | 6666 | | |
6667 | 6667 | | |
6668 | | - | |
| 6668 | + | |
6669 | 6669 | | |
6670 | 6670 | | |
6671 | 6671 | | |
| |||
6681 | 6681 | | |
6682 | 6682 | | |
6683 | 6683 | | |
6684 | | - | |
| 6684 | + | |
6685 | 6685 | | |
6686 | 6686 | | |
6687 | 6687 | | |
| |||
6697 | 6697 | | |
6698 | 6698 | | |
6699 | 6699 | | |
6700 | | - | |
| 6700 | + | |
6701 | 6701 | | |
6702 | 6702 | | |
6703 | 6703 | | |
| |||
6714 | 6714 | | |
6715 | 6715 | | |
6716 | 6716 | | |
6717 | | - | |
6718 | | - | |
| 6717 | + | |
| 6718 | + | |
6719 | 6719 | | |
6720 | 6720 | | |
6721 | 6721 | | |
| |||
0 commit comments