php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #80238
Patch integerToDatabaseWithoutLineComments revision 2020-10-16 07:50 UTC by thomas dot baumgartl at stahlgruber dot de
Patch integerToDatabase revision 2020-10-16 06:55 UTC by thomas dot baumgartl at stahlgruber dot de
Patch NotApatch revision 2020-10-15 09:12 UTC by christian dot koelbl at stahlgruber dot de

Patch integerToDatabaseWithoutLineComments for PDO_IBM Bug #80238

Patch version 2020-10-16 07:50 UTC

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

Developer: thomas.baumgartl@stahlgruber.de

diff --git a/ibm_statement.c b/ibm_statementCorrected.c
index be1d8e4..4e04dac 100644
--- a/ibm_statement.c
+++ b/ibm_statementCorrected.c
@@ -505,7 +505,7 @@ int stmt_bind_parameter(pdo_stmt_t *stmt, struct pdo_bound_param_data *curr TSRM
 #endif
 
 #if PHP_MAJOR_VERSION >= 7
-					if (!strcmp(curr->parameter.value.str->val, "")) {
+					if (!strcmp(parameter->value.str->val, "")) {
 #else
 					if (!strcmp(curr->parameter->value.str.val, "")) {
 #endif
@@ -537,7 +537,7 @@ int stmt_bind_parameter(pdo_stmt_t *stmt, struct pdo_bound_param_data *curr TSRM
 								param_res->param_size,
 								param_res->scale,
 #if PHP_MAJOR_VERSION >= 7
-								&((curr->parameter).value.lval),
+								&((parameter)->value.lval),
 #else
 								&((curr->parameter)->value.lval),
 #endif
@@ -632,7 +632,7 @@ int stmt_bind_parameter(pdo_stmt_t *stmt, struct pdo_bound_param_data *curr TSRM
 								param_res->param_size,
 								param_res->scale,
 #if PHP_MAJOR_VERSION >= 7
-								&((curr->parameter).value.lval),
+								&((parameter)->value.lval),
 #else
 								&((curr->parameter)->value.lval),
 #endif
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 05:01:29 2024 UTC