|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-06-04 11:33 UTC] giorgio dot liscio at email dot it
Description: ------------ hi, there is a strange behavior with domimplementation and its reference inside domdocument: i can't determine if a domdocument is bound to a specific implementation, because $implementation = new \DOMImplementation(); $doc = $implementation->createDocument(); var_dump($doc->implementation === $implementation); // should be true, but it is false PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 11:00:01 2025 UTC |
class MyImplementation extends \DOMImplementation { function commonfunc() { echo "implementation"; } } $implementation = new MyImplementation(); $doc = $implementation->createDocument(); var_dump($doc->implementation === $implementation); // raises error: //doc->implementation->commonfunc();