php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59524 Improve error reporting
Submitted: 2010-11-30 11:37 UTC Modified: 2015-06-05 12:33 UTC
From: kolar dot radim at gmail dot com Assigned: rahulpriyadarshi (profile)
Status: Closed Package: ibm_db2 (PECL)
PHP Version: 5.2.4 OS: Ubuntu 8.04
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:
Package:
Bug Type:
Summary:
From: kolar dot radim at gmail dot com
New email:
PHP Version: OS:

 

 [2010-11-30 11:37 UTC] kolar dot radim at gmail dot com
Description:
------------
1. Make "describe param failed" error message consistent with rest. (make text unique becase this message is twice in source code)

2. Add failed parameter number to message

Reproduce code:
---------------
--- ibm_db2.c.orig      1970-01-01 10:13:08.000000000 +0100
+++ ibm_db2.c   2010-11-30 10:57:27.000000000 +0100
@@ -3977,7 +3977,7 @@
                                        (SQLSMALLINT*)&data_type, &precision, (SQLSMALLINT*)&scale,
                                        (SQLSMALLINT*)&nullable);
                                if ( rc == SQL_ERROR ) {
-                                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Describe Param Failed");
+                                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Describe Param %d Failed 2", param_no);
                                        _php_db2_check_sql_errors((SQLHSTMT)stmt_res->hstmt, SQL_HANDLE_STMT, rc, 1, NULL, -1, 1 TSRMLS_CC);
                                        return rc;
                                }



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-01 00:29 UTC] abhargav at in dot ibm dot com
Point noted.

Will update this in next release.

Regards,
Ambrish Bhargava
 [2015-06-05 12:33 UTC] rahulpriyadarshi@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: rahulpriyadarshi
 [2015-06-05 12:33 UTC] rahulpriyadarshi@php.net
This fix is in released
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Jan 23 05:01:24 2020 UTC