-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Fix Bug 81160 #7173
base: master
Are you sure you want to change the base?
Fix Bug 81160 #7173
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I expect this needs JIT changes, e.g. zend_jit_fetch_dim_str_is_helper?
I don't think it does, the JIT doesn't support |
Finally got back to this, and I think I've now fixed the JIT issues. For future reference, to see the JIT failures php-src needs to be compiled with |
24337d6
to
26d75b6
Compare
1e63a8e
to
7e04ded
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was the BC break discussed before? I think this warrants an e-mail to the internals list.
Just my 2 cents: I'm not overly enthusiastic about this change: I find it quite useful to be able to use |
The thing is that arrays already throw TypeErrors, I'm planning to go write an RFC for this but I haven't had the time yet. |
…ng offset Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com>
I'm not sure if this was a bug. |
Yes, I am planning on doing an RFC :) |
$a = 'string'; | ||
var_dump(isset($a['b'])); | ||
var_dump(empty($a['b'])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw: PHPStan also warns in this constellation:
Fix for https://bugs.php.net/bug.php?id=81160.
Split from #7167.