note 66513 added to function.dom-domxpath-construct

From: Date: Wed, 24 May 2006 20:43:53 +0000
Subject: note 66513 added to function.dom-domxpath-construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-111959@lists.php.net to get a copy of this message
To the person who posted "It is not clear what the DOMXPath::__constructor() method returns." ... please take a look at what you just posted. You check the result of the FUNCTION loadXML() but then the CONSTRUCTOR of the DOMXPath Object. Constructors return references to the objects they've created (in a nutshell) whereas the loadXML() FUNCTION returns BOOLEAN. Note how you, correctly, did not try to evaluate new DOMDocument? Why would you try to evaluate DOMXPath for boolean? ---- Server IP: 216.194.113.175 Probable Submitter: 65.66.90.197 ---- 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-domxpath-construct.php Edit -- http://master.php.net/note/edit/66513 Del: integrated -- http://master.php.net/note/delete/66513/integrated Del: useless -- http://master.php.net/note/delete/66513/useless Del: bad code -- http://master.php.net/note/delete/66513/bad+code Del: spam -- http://master.php.net/note/delete/66513/spam Del: non-english -- http://master.php.net/note/delete/66513/non-english Del: in docs -- http://master.php.net/note/delete/66513/in+docs Del: other reasons-- http://master.php.net/note/delete/66513 Reject -- http://master.php.net/note/reject/66513 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#111959) next »