Commit 4253b17
committed
fix(compat): replace str_starts_with with strncmp for PHP 7.4
PhpSyntaxTest.php used str_starts_with() (PHP 8.0+) which would fatal
under PHP 7.4 before any assertion ran. Use strncmp() instead.
Also remove redundant (int) cast and double in_array check on
drp_action in notify_lists.php: get_filter_request_var() already
validated the value; the second clause was dead and confusing.
Replace count() with cacti_sizeof() in setup.php bulk loop.
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>1 parent f8ca477 commit 4253b17
3 files changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
| 153 | + | |
155 | 154 | | |
156 | 155 | | |
157 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
691 | 691 | | |
692 | 692 | | |
693 | 693 | | |
694 | | - | |
| 694 | + | |
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments