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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 08:01:28 2024 UTC