-
Notifications
You must be signed in to change notification settings - Fork 7.8k
var_dump() output incorrect #11787
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
Comments
Hi @flobee! Omitting the |
Though the question is then, why |
@heiglandreas @Girgias would probably be most informed about string to int coercion, but there is no |
Thx. I remember, NOW :-) , from the very past. but was wondering. |
Array keys do not follow the normal numeric string semantics. It has it own "integer string" semantics. For example the offset Part of the technical background of the Saner Numeric Strings RFC explains this |
@flobee No worries, thanks for your quick feedback! |
Just to make it complet for other may need alterative help ways: |
Description
The following code:
Resulted in this output:
But I expected this output instead:
OS: Debian Buster, Tested with php8.0, 8.1, 8.2, 5.6, 7.0, 7.3,7.4 (packages from sury)
All the same result.
PHP Version
8.0.29
Operating System
Debian Buster
The text was updated successfully, but these errors were encountered: