#49303 [NEW]: SQLite3::numRows() not implemented
| From: | rene at 809estudio dot com | Date: | Thu, 20 Aug 2009 06:57:33 +0000 |
| Subject: | #49303 [NEW]: SQLite3::numRows() not implemented | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-141270@lists.php.net to get a copy of this message | ||
From: rene at 809estudio dot com
Operating system: Windows Vista Home Premium
PHP version: 5.3.0
PHP Bug Type: SQLite related
Bug description: SQLite3::numRows() not implemented
Description:
------------
PHP's SQLite library possesed a function called sqlite_num_rows($result)
which would return the number of rows present in a result from a query.
This method is not implemented in the SQLiteResult class even if the
documentation hints that it exists.
http://www.php.net/manual/en/function.sqlite-num-rows.php
This is a core function which should not be overlooked.
Reproduce code:
---------------
<?php
$db = new SQLite3('databaseName');
$result = $db->query('SELECT * FROM tableName');
echo "Number of rows : ".$result->numRows();
?>
Expected result:
----------------
Number of rows: 100
Actual result:
--------------
Fatal error: Call to undefined method SQLite3Result::numRows() in {file}
on line {line}
--
Edit bug report at http://bugs.php.net/?id=49303&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49303&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49303&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49303&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=49303&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49303&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=49303&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=49303&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=49303&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=49303&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=49303&r=support
Expected behavior: http://bugs.php.net/fix.php?id=49303&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=49303&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=49303&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=49303&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49303&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49303&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=49303&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=49303&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=49303&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=49303&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=49303&r=mysqlcfg