Req #65565 [Opn->Csd]: var_dump of DOM objects displays empty objects
| From: | requinix@php.net | Date: | Wed, 11 Jan 2017 03:21:53 +0000 |
| Subject: | Req #65565 [Opn->Csd]: var_dump of DOM objects displays empty objects | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-206482@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65565&edit=1
ID: 65565
Updated by: requinix@php.net
Reported by: Laurent dot Lyaudet at gmail dot com
Summary: var_dump of DOM objects displays empty objects
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: DOM XML related
Operating System: Debian Linux
PHP Version: 5.4.19
-Assigned To:
+Assigned To: requinix
Block user comment: N
Private report: N
New Comment:
https://3v4l.org/MGr04
Previous Comments:
------------------------------------------------------------------------
[2017-01-10 20:36:04] arnout dot boks at moxio dot com
This is fixed in recent PHP versions, as is verified by e.g. https://github.com/php/php-src/blob/master/ext/dom/tests/bug69846.phpt
------------------------------------------------------------------------
[2014-05-02 18:39:51] Laurent dot Lyaudet at gmail dot com
Hi,
I did a second test today with Debian Wheezy updated-upgraded.
It didn't work :
-----------------------------------------------------------------
root@wheezyDEVLaurent:~# php --version
PHP 5.4.4-14+deb7u9 (cli) (built: Apr 18 2014 14:34:31)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans
root@wheezyDEVLaurent:~# php
<?php
$oDOMElement = new DOMElement('balise');
var_dump($oDOMElement);
?>
class DOMElement#1 (0) {
}
root@wheezyDEVLaurent:~#
-----------------------------------------------------------------
I also tested it on Ubuntu Trusty with PHP 5.5.9 and it worked.
I don't know why it doesn't work in Debian. Maybe the commit did not make it to the stable
version of Debian.
Since it seems to work in later versions, feel free to close the bug.
I'll continue to use work-arounds with Wheezy.
Best regards,
Laurent Lyaudet
------------------------------------------------------------------------
[2014-04-14 14:13:58] jpauli@php.net
This is strange.
The commit is into PHP5.4 tree, since 5.4.1
https://github.com/php/php-src/commit/d04682766d66da083d9b14400bd9c75dd9b1463b
Are you sure about your PHP version ?
------------------------------------------------------------------------
[2013-08-28 08:13:43] Laurent dot Lyaudet at gmail dot com
The bug for the reflection part was already reported in bug 48527.
------------------------------------------------------------------------
[2013-08-27 16:38:42] Laurent dot Lyaudet at gmail dot com
Note that the use of Reflection doesn't yield the content either.
Some methods are listed but no property is.
Example:
ReflectionObject::export($oMyDOMObject);
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=65565
--
Edit this bug report at https://bugs.php.net/bug.php?id=65565&edit=1