-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix dom class can't be inherited by the internal class #2263
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
What's the background for this change? |
@nikic When create new extension define class zend_register_internal_class_ex(&my_ce, dom_element_class_entry); Happen error <?php
$html = <<<HTML
<a href="a">a</a>
HTML;
$document = new \DOMDocument();
$document->registerNodeClass("\\DOMElement", "\\MyDOMElement");
$document->loadHTML(html);
$node = $document->childNodes->item(1);
var_dump($node, $node->nodeName); |
Comparing class entries directly looks and feels wrong ... |
Maybe check against the module entry of the class instead? |
If type equal |
To clarify, what I meant is checking for something like |
@nikic Thank you, I changed. |
This reverts commit 299e02c.
Please check tests ... |
This reverts commit a9aefe5.
@krakjoe Sorry, Now it's OK. |
Re-merged via 3c97761, thanks! |
No description provided.