-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Fix property_exists() for XMLReader #16079
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
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.
Good find, thanks! I guess I assumed this handler exists.
Similarly it seems that an unset handler is missing... I kinda forgot I applied virtual properties here too.
This should target PHP-8.4 btw
ext/xmlreader/php_xmlreader.c
Outdated
return 0; | ||
} else { | ||
zval_ptr_dtor(&rv); | ||
return 1; |
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.
This should respect the rules for isset and empty, so for empty this should call zend_is_true
for example.
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.
Ah, yeah, I wanted to copy-paste the code I wrote for DatePeriod, but somehow I got distracted... I'm fixing it right now.
Yeah, I based my branch on PHP-8.4, but I always keep forgetting to set the right target when it comes to creating the PR. |
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.
Thanks a lot! Found one minor mistake
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.
Thank you!
* PHP-8.4: Fix property_exists() and unset() for XMLReader (#16079)
No description provided.