php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55012 DOMConfiguration available but not linked
Submitted: 2011-06-09 02:39 UTC Modified: 2011-06-09 04:04 UTC
From: giorgio dot liscio at email dot it Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 5.3SVN-2011-06-09 (snap) OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: giorgio dot liscio at email dot it
New email:
PHP Version: OS:

 

 [2011-06-09 02:39 UTC] 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));


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-06-09 04:04 UTC] dtajchreber@php.net
-Status: Open +Status: Bogus
 [2011-06-09 04:04 UTC] dtajchreber@php.net
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:~]$
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Mar 13 20:01:30 2025 UTC