Bug #80891 [NEW]: DOMDocument::registerNodeClass contains wrong information
| From: | andrey at email dot dp dot ua | Date: | Fri, 19 Mar 2021 20:30:38 +0000 |
| Subject: | Bug #80891 [NEW]: DOMDocument::registerNodeClass contains wrong information | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-18660@lists.php.net to get a copy of this message | ||
From: andrey at email dot dp dot ua
Operating system: Debian Linux
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Bug
Bug description:DOMDocument::registerNodeClass contains wrong information
Description:
------------
DOMDocument::registerNodeClass manual contains the following chapter:
"Example #3 Retrieving owner document
When instantiating a custom DOMDocument the ownerDocument property will
refer to the instantiated class, meaning there is no need (and in fact
not possible) to use DOMDocument::registerNodeClass() with DOMDocument"
In fact this information is wrong. DOMDocument::registerNodeClass() with
DOMDocument is required to set to work with extended DOMDocument
classes
Otherwise extended DOMDocument class will be changed to unextended
DOMDocument on context change
Please look at:
Bug #60323
Extended DOMDocument will change to unextended DOMDocument on context
change
--
Edit bug report at https://bugs.php.net/bug.php?id=80891&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80891&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80891&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80891&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80891&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80891&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80891&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80891&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80891&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80891&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80891&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80891&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80891&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80891&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80891&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80891&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80891&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80891&r=mysqlcfg