|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #63466 PDO_MYSQL ignores PDO::FETCH_ORI_ABS in PDOStatement::fetch()
Submitted: 2012-11-08 09:48 UTC Modified: 2017-10-24 08:33 UTC
Avg. Score:4.6 ± 0.7
Reproduced:13 of 13 (100.0%)
Same Version:1 (7.7%)
Same OS:6 (46.2%)
From: vicrry at yahoo dot com dot hk Assigned:
Status: Open Package: PDO MySQL
PHP Version: 5.4.8 OS: CentOS
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-11-08 09:48 UTC] vicrry at yahoo dot com dot hk
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(


$row = $stmt->fetch(PDO::FETCH_NUM, PDO::FETCH_ORI_ABS, 5);

Expected result:
The sixth row returned.

Actual result:
The first row returned.


patch_against_5.3.3 (last revision 2013-05-02 19:46 UTC by brianj at technews dot co dot za)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-01-30 16:08 UTC]
-Type: Bug +Type: Feature/Change Request
 [2013-01-30 16:08 UTC]
If its a bug, its a docs bug. Where in the PDO spec is written that every PDO driver has to support random flags of other drivers? I do not remember anything like that. Nonetheless the docs create the impression this is the case.
 [2017-10-24 08:33 UTC]
-Package: PDO related +Package: PDO MySQL
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Sep 26 22:03:37 2021 UTC