Commit 75cca9f
committed
Fix memory leaks in array_any() / array_all()
The return value is overwritten, but if the key was not an interned
string we should destroy it.
Closes phpGH-17977.1 parent b2e49c8 commit 75cca9f
3 files changed
+34
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6628 | 6628 | | |
6629 | 6629 | | |
6630 | 6630 | | |
6631 | | - | |
| 6631 | + | |
| 6632 | + | |
6632 | 6633 | | |
6633 | 6634 | | |
6634 | 6635 | | |
| |||
6656 | 6657 | | |
6657 | 6658 | | |
6658 | 6659 | | |
6659 | | - | |
| 6660 | + | |
6660 | 6661 | | |
6661 | 6662 | | |
6662 | 6663 | | |
| |||
6725 | 6726 | | |
6726 | 6727 | | |
6727 | 6728 | | |
6728 | | - | |
| 6729 | + | |
| 6730 | + | |
| 6731 | + | |
| 6732 | + | |
| 6733 | + | |
6729 | 6734 | | |
6730 | 6735 | | |
6731 | 6736 | | |
| |||
6745 | 6750 | | |
6746 | 6751 | | |
6747 | 6752 | | |
6748 | | - | |
| 6753 | + | |
| 6754 | + | |
| 6755 | + | |
| 6756 | + | |
| 6757 | + | |
6749 | 6758 | | |
6750 | 6759 | | |
6751 | 6760 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments