Skip to content

Commit c97b9aa

Browse files
committed
Always treat needles as strings
This is part of https://wiki.php.net/rfc/deprecations_php_7_3.
1 parent c7d7af8 commit c97b9aa

31 files changed

+208
-1073
lines changed

UPGRADING

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ PHP 8.0 UPGRADE NOTES
7676
. parse_str() can no longer be used without specifying a result array.
7777
. fgetss() has been removed.
7878
. The string.strip_tags filter has been removed.
79+
. The needle argument of strpos(), strrpos(), stripos(), strripos(), strstr(),
80+
strchr(), strrchr(), and stristr() will now always be interpreted as a
81+
string. Previously non-string needles were interpreted as an ASCII code
82+
point. An explicit call to chr() can be used to restore the previous
83+
behavior.
7984

8085
- Zlib:
8186
. gzgetss() has been removed.

0 commit comments

Comments
 (0)