Commit 7c191ea
committed
bug #1000 fix: Replace str_starts_with by strncmp (PHP7 compatibility) (PROFeNoM)
This PR was merged into the 1.x branch.
Discussion
----------
fix: Replace str_starts_with by strncmp (PHP7 compatibility)
Hi 👋
The [v1.21.0](https://github.com/symfony/flex/releases/tag/v1.21.0) tag release made a few hours ago started breaking compatibility with PHP7 because of the use of `str_starts_with`.
This PR replaces `str_starts_with` by `strncmp`, as suggested by the [rfc](https://wiki.php.net/rfc/add_str_starts_with_and_ends_with_functions) 😃
Commits
-------
07e35fa fix: Replace str_starts_with by strncmp (PHP7 compatibility)1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
0 commit comments