note 62647 added to function.dom-domdocument-loadxml

From: Date: Mon, 06 Mar 2006 12:04:37 +0000
Subject: note 62647 added to function.dom-domdocument-loadxml
Groups: php.notes 
Request: Send a blank email to php-notes+get-104895@lists.php.net to get a copy of this message
Just in case you try to do the same as I did and thought you found a bug: loadXML() is not a true static function. It is just allowed to be called statically. When called statically within a method of an instantiated DOMDocument object it acts as if the method had been called directly from the object itself rather than statically. This means that if you call DOMDocument::loadXML() from within an instantiated DOMDocument object, it will not return a new DOMDocument but true/false. Georg ---- Server IP: 66.163.161.117 Probable Submitter: 84.151.38.248 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.dom-domdocument-loadxml.php Edit -- http://master.php.net/note/edit/62647 Del: integrated -- http://master.php.net/note/delete/62647/integrated Del: useless -- http://master.php.net/note/delete/62647/useless Del: bad code -- http://master.php.net/note/delete/62647/bad+code Del: spam -- http://master.php.net/note/delete/62647/spam Del: non-english -- http://master.php.net/note/delete/62647/non-english Del: in docs -- http://master.php.net/note/delete/62647/in+docs Del: other reasons-- http://master.php.net/note/delete/62647 Reject -- http://master.php.net/note/reject/62647 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#104895) next »