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

 ID:                 55012
 Updated by:         dtajchre...@php.net
 Reported by:        giorgio dot liscio at email dot it
 Summary:            DOMConfiguration available but not linked
-Status:             Open
+Status:             Bogus
 Type:               Bug
 Package:            DOM XML related
 PHP Version:        5.3SVN-2011-06-09 (snap)
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

The class isn't implemented yet. A shell of the class exists in the code base 
so 

you're able to create an instance but nothing is implemented... so a null is 

returned when you access $domdocument->config. Sorry. :)



[1] http://lxr.php.net/opengrok/xref/PHP_5_3/ext/dom/domconfiguration.c

[2] http://lxr.php.net/opengrok/xref/PHP_5_3/ext/dom/php_dom.c#669

[3] http://lxr.php.net/opengrok/xref/PHP_5_3/ext/dom/document.c#887





[david@oslo:~]$ php -r '$a = new DOMConfiguration(); $a->getParameter(); $a = 

new DOMDocument(); var_dump($a->config);'

PHP Warning:  DOMConfiguration::getParameter(): Not yet implemented in Command 

line code on line 1



Warning: DOMConfiguration::getParameter(): Not yet implemented in Command line 

code on line 1

NULL

[david@oslo:~]$


Previous Comments:
------------------------------------------------------------------------
[2011-06-09 02:39:45] giorgio dot liscio at email dot it

Description:
------------
hi



$document->domConfig;   (readonly)



should return a DOMConfiguration class



the class DOMConfiguration is actually available (and instantiable) but it is 
not linked to DOMDocument



try this:

echo new \ReflectionClass(\new DOMConfiguration));



------------------------------------------------------------------------



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

Reply via email to