|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17015 Ora_Error/Ora_ErrorCode
Submitted: 2002-05-05 10:41 UTC Modified: 2003-01-29 08:20 UTC
From: sparasker at hotmail dot com Assigned:
Status: Not a bug Package: Oracle related
PHP Version: 4.1.2 OS: HP-Unix 11.X
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: sparasker at hotmail dot com
New email:
PHP Version: OS:


 [2002-05-05 10:41 UTC] sparasker at hotmail dot com
When checking for errors after Ora_Do, if the table is empty, neither of them (ora_error/ora_errorcode) return 1403 (no data found). Following is sample code:

$query = "select * from test_table ";
$qCursor = Ora_Do($oraConn, $query);
$qError = Ora_ErrorCode($query);
// $qError = Ora_Error($query);

echo "Error = >".$qError."< \n";


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-29 08:20 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

Ora_do does not fail when there is no data returned, thus ora_error and/or ora_errorcode does not return any errors either. This is an expected behaviour. 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 25 03:01:28 2024 UTC