|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-08-17 18:19 UTC] jani@php.net
[2009-08-17 18:22 UTC] jani@php.net
[2009-09-25 18:32 UTC] rrichards@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 07:00:01 2025 UTC |
Description: ------------ if u try to create a new object from an simple xml-objekt-property you got an simple xml object :( Reproduce code: --------------- class test {} $Xml = new SimpleXMLElement('<root><classname>stdclass</classname></root>'); $XmlClass = new $Xml->classname('<root />'); print_r($XmlClass); $MyClass = new stdclass(); $MyClass->classname = 'test'; $stdclass = new $MyClass->classname(); print_r($stdclass); Expected result: ---------------- stdclass Object ( ) test Object ( ) Actual result: -------------- SimpleXMLElement Object ( ) test Object ( )