Re: phpdoc2 (was) DB_Result::tableInfo() docs misleading
| From: | Alan Knowles | Date: | Wed, 28 Aug 2002 01:11:16 +0000 |
| Subject: | Re: phpdoc2 (was) DB_Result::tableInfo() docs misleading | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-8695@lists.php.net to get a copy of this message | ||
Alexander
- is there a plan to get this on to cvs.php.net, I could start looking at moving APD,bcompiler,Soap, DB_DataObject and HTML_Template_Flexy into it.
regards
Alan
alexmerz@php.net wrote:
ID: 19108 Updated by: alexmerz@php.net Reported By: stephan@wanderinghorse.net -Status: Open +Status: Closed Bug Type: PEAR relatedOperating System: n/aPHP Version: 4.2.0New Comment: Every entry headline is written as Package::Function. It does not indicate any static behavior. Peardoc 2 will clearifed this. See Draft on http://www-user.tu-chemnitz.de/~meal/php/peardoc2/ Previous Comments: ------------------------------------------------------------------------ [2002-08-26 11:37:05] stephan@wanderinghorse.net DB_Result::tableInfo() docs say as follows: ------------------DB_Result::tableInfo() -- returns meta data about the result set Description mixed tableInfo (DB_Result $result [, mode $mode]) ... ------------------ That is misleading, however: it cannot be called statically. $res = $db->query( "select foo from bar" ); DB_Result::tableInfo( $res ); fails with "Fatal error: Call to a member function on a non-object in DB.php on line 828" It must be called on an object: $res = $db->query( "select * from hits where false" ); $ar = $res->tableInfo(); print_r( $ar );------------------------------------------------------------------------