Doc #78526 [NEW]: Bad return value signature of SimpleXMLElement::xpath

From: Date: Wed, 11 Sep 2019 11:40:28 +0000
Subject: Doc #78526 [NEW]: Bad return value signature of SimpleXMLElement::xpath
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16937@lists.php.net to get a copy of this message
From: yann dot rabiller at gmail dot com Operating system: PHP version: Irrelevant Package: SimpleXML related Bug Type: Documentation Problem Bug description:Bad return value signature of SimpleXMLElement::xpath Description: ------------ --- From manual page: https://php.net/simplexmlelement.xpath --- The signature of the xpath method as given in the documentation is: public SimpleXMLElement::xpath ( string $path ) : array This means an array is necessarily returned from the method. On the other hand, when reading the return values in the same page, I see: > Returns an array of SimpleXMLElement objects or FALSE in case of an error. -- Edit bug report at https://bugs.php.net/bug.php?id=78526&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78526&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78526&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78526&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78526&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78526&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78526&r=support Expected behavior: https://bugs.php.net/fix.php?id=78526&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78526&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78526&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78526&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78526&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78526&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78526&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78526&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78526&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78526&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78526&r=mysqlcfg

« previous php.doc.bugs (#16937) next »