- Issue created by @PaEricksonWaTech
- First commit to issue fork.
- Merge request !2Issue #3352255: Resolve deprecation of strpos and stripos. → (Closed) created by sakthi_dev
- Status changed to Needs review
over 1 year ago 11:13am 5 April 2023 - 🇺🇸United States PaEricksonWaTech
When trying to install and run I was met with syntax errors on line # 272, 309, 312, 315, 326. All the same thing: missing open paren.
#272
elseif (stripos(!empty($path) ? $path : ''), '=') !== FALSE) {
should be
elseif (stripos((!empty($path) ? $path : ''), '=') !== FALSE) {
the others
return stripos(!empty($l) ? $l : ''), $r) !== FALSE;
should be
return stripos((!empty($l) ? $l : ''), $r) !== FALSE;
etc.I made these changes to my local and all my errors/warnings went away! This is great, thank you.
- 🇺🇸United States PaEricksonWaTech
I installed the updated patch. It resolved all issues I was having. Thank you.
- 🇺🇸United States loopy1492
Rolled a static patch for security reasons. This is also a problem in 2.x, FYI
- Status changed to Closed: duplicate
7 months ago 1:25pm 18 April 2024 - 🇺🇦Ukraine AstonVictor
It's a duplicate of 🐛 Deprecated function: strlen(): Passing null to parameter #1 ($string) of type string is deprecated RTBC