From: vicrry at yahoo dot com dot hk Operating system: CentOS PHP version: 5.4.8 Package: PDO related Bug Type: Bug Bug description:PDO_MYSQL ignores PDO::FETCH_ORI_ABS in PDOStatement::fetch()
Description:
------------
When fetching with PDO::FETCH_ORI_ABS from MySQL with
PDOStatement::fetch(), the
driver silently swallows the options and work as if I passed
PDO::FETCH_ORI_NEXT.
Test script:
---------------
$stmt = $pdo->prepare('SELECT * FROM table', array(
PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL
));
$stmt->execute();
$row = $stmt->fetch(PDO::FETCH_NUM, PDO::FETCH_ORI_ABS, 5);
Expected result:
----------------
The sixth row returned.
Actual result:
--------------
The first row returned.
--
Edit bug report at https://bugs.php.net/bug.php?id=63466&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=63466&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=63466&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=63466&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63466&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63466&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63466&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63466&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63466&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63466&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63466&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=63466&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=63466&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63466&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63466&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63466&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63466&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63466&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63466&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63466&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63466&r=mysqlcfg
