php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #76322
Patch fix_for_defect revision 2018-08-10 08:39 UTC by vnkbabu@php.net

Patch fix_for_defect for ibm_db2 Bug #76322

Patch version 2018-08-10 08:39 UTC

Return to Bug #76322 | Download this patch
Patch Revisions:

Developer: vnkbabu@php.net

--- ../ibm_db2-2.0.6/ibm_db2.c  2018-06-18 06:45:48.000000000 -0400
+++ ibm_db2.c   2018-08-10 04:30:35.000000000 -0400
@@ -6569,11 +6569,11 @@
 #else
                         if ( op & DB2_FETCH_ASSOC ) {
                             ADD_ASSOC_STRINGL(return_value, (char *)stmt_res->column_info[i].name,
-                                (char *)row_data->str_val, strlen((char *)row_data->str_val), 1);
+                                (char *)row_data->str_val, out_length, 1);
                         }
                         if ( op & DB2_FETCH_INDEX ) {
                             ADD_INDEX_STRINGL(return_value, i, (char *)row_data->str_val,
-                                strlen((char *)row_data->str_val), 1);
+                                out_length, 1);
                         }
 #endif /* PASE */
                     }
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Dec 12 10:01:24 2019 UTC