8000 PHP 8.x : strpos regression · Issue #604 · AlternC/AlternC · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PHP 8.x : strpos regression #604

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
camlafit opened this issue Nov 19, 2024 · 0 comments
Open

PHP 8.x : strpos regression #604

camlafit opened this issue Nov 19, 2024 · 0 comments

Comments

@camlafit
Copy link
Contributor

Hello

Since #542 we can set php 8.x to AlternC but strpos behavior has change beetween < 8.x and and >=8.x

Before php 8.x strpos with an empty search value to test raised a warning and test was broken
Adter php8.x strpos accept an empty search value and return 0 as position

All strpos with an empty needle should be check

camlafit added a commit that referenced this issue Nov 19, 2024
* Since php8.x needle can be empty and its position is a valid 0 not false

cf #604
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0