Bug #54991 [Opn->Ana]: domimplementation instance is not a reference inside domdocument
| From: | mike@php.net | Date: | Tue, 03 Dec 2013 09:52:04 +0000 |
| Subject: | Bug #54991 [Opn->Ana]: domimplementation instance is not a reference inside domdocument | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-183093@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=54991&edit=1
ID: 54991
Updated by: mike@php.net
Reported by: giorgio dot liscio at email dot it
Summary: domimplementation instance is not a reference inside
domdocument
-Status: Open
+Status: Analyzed
Type: Bug
Package: DOM XML related
Operating System: any?
PHP Version: 5.3.6
Block user comment: N
Private report: N
New Comment:
.) the objects created by DOMImplementation->create* do not reference the implementation
.) dom_document_implementation_read() always creates a new DOMImplementation object
Previous Comments:
------------------------------------------------------------------------
[2011-06-04 13:00:44] giorgio dot liscio at email dot it
class MyImplementation extends \DOMImplementation
{
function commonfunc()
{
echo "implementation";
}
}
$implementation = new MyImplementation();
$doc = $implementation->createDocument();
var_dump($doc->implementation === $implementation);
// raises error:
//doc->implementation->commonfunc();
------------------------------------------------------------------------
[2011-06-04 11:33:38] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=54991&edit=1