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
range(9.9, '0') causes segmentation fault #13094
Comments
Huh I had already started debugging this, |
@nielsdos No worries, I doubt Gina will be mad ^^ In any case, it's good she's informed. |
Erg I was trying to be smart and failed. Can you PR the change @nielsdos so that you get proper credit? |
`start_type + end_type < 2*IS_STRING` is not right, in this test case the types are start_type==5 (IS_DOUBLE), end_type==7 (IS_ARRAY). The IS_ARRAY type is a sentinel to disambiguate single-byte strings. The path must be taken when one of the types is not a string nor a single-byte string. Therefore, use < IS_STRING with an OR condition.
* PHP-8.3: Fix GH-13094: range(9.9, '0') causes segmentation fault
Description
Hi,
The following code:
Resulted in a SEGFAULT.
But I expected (something like) this output instead:
This might not be specific to Windows, since I was also able to reproduce it here : https://3v4l.org/qc6TF.
Anyway if you need me to dump more information, just ask (I may not respond immediately).
PHP Version
PHP 8.3.1
Operating System
Windows 11
The text was updated successfully, but these errors were encountered: