-
Notifications
You must be signed in to change notification settings - Fork 801
Fix dom_import_simplexml() return type #3882
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
The documentation of this function is also a bit whack... Description:
This is inaccurate now Return values:
What ??? What does added even mean here? |
Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
Indeed, makes no sense, so updated. (a bit sad, though, since it would have had its 20th birthday in a couple of weeks ;) Before updating/improving/fixing the description, could you please have a look at the implementation of dom_import_simplexml_common(): Is it really okay to cast an arbitrary object to a |
Note that |
Ah, I've overlooked I've pushed a further commit regarding the function and the parameter descriptions. However, it seems to me that not only |
Indeed it's broader than simplexml. However, in practice only DOM & simplexml register handlers to be able to do it. |
Thanks for the clarification! I tried to improve the wording, and added a respective example. |
Thanks a lot! |
See php/php-src#16489.