Edit report at http://bugs.php.net/bug.php?id=54991&edit=1

 ID:                 54991
 Comment by:         giorgio dot liscio at email dot it
 Reported by:        giorgio dot liscio at email dot it
 Summary:            domimplementation instance is not a reference inside
                     domdocument
 Status:             Open
 Type:               Bug
 Package:            DOM XML related
 Operating System:   any?
 PHP Version:        5.3.6
 Block user comment: N
 Private report:     N

 New Comment:

class MyImplementation extends \DOMImplementation

{

        function commonfunc()

        {

                echo "implementation";          

        }

}



$implementation = new MyImplementation();

$doc = $implementation->createDocument();

var_dump($doc->implementation === $implementation);

// raises error:

//doc->implementation->commonfunc();


Previous Comments:
------------------------------------------------------------------------
[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 http://bugs.php.net/bug.php?id=54991&edit=1

Reply via email to