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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 17:01:35 2025 UTC