php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #76112
Patch ibm_db2_IS_TYPE_IMMUTABLE.patch revision 2018-03-19 09:05 UTC by guy dot baconniere at applic8 dot com

Patch ibm_db2_IS_TYPE_IMMUTABLE.patch for ibm_db2 Bug #76112

Patch version 2018-03-19 09:05 UTC

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

Developer: guy.baconniere@applic8.com

diff --git a/ibm_db2.c b/ibm_db2.c
index 35839a7..2065125 100644
--- a/ibm_db2.c
+++ b/ibm_db2.c
@@ -5077,7 +5077,7 @@ PHP_FUNCTION(db2_execute)
     }
 
 #if PHP_MAJOR_VERSION >= 7
-    if (parameters_array && Z_TYPE_P(parameters_array) == IS_ARRAY && (Z_TYPE_FLAGS_P(parameters_array) & IS_TYPE_IMMUTABLE)) {
+    if (parameters_array && Z_TYPE_P(parameters_array) == IS_ARRAY && (Z_TYPE_FLAGS_P(parameters_array) & IS_ARRAY_IMMUTABLE)) {
         SEPARATE_ARRAY(parameters_array);
     }
 #endif
@@ -7779,7 +7779,7 @@ PHP_FUNCTION( db2_execute_many )
     }
 
 #if PHP_MAJOR_VERSION >= 7
-    if (params && Z_TYPE_P(params) == IS_ARRAY && (Z_TYPE_FLAGS_P(params) & IS_TYPE_IMMUTABLE)) {
+    if (params && Z_TYPE_P(params) == IS_ARRAY && (Z_TYPE_FLAGS_P(params) & IS_ARRAY_IMMUTABLE)) {
         SEPARATE_ARRAY(params);
     }
 #endif
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 01:01:28 2024 UTC