@@ -472,7 +472,7 @@ static void _php_db2_errorlog(const char * format, ...)
472
472
473
473
/* {{{ static int _php_db2_hash_find_ind(const char * varname, int varlen, zval ***bind_data)
474
474
*/
475
- static int _php_db2_hash_find_ind (char * varname , int varlen , zval * * temp , zval * * * bind_data , zend_array * * symbol_table_used )
475
+ static int _php_db2_hash_find_ind (char * varname , int varlen , zval * * temp , zval * * * bind_data , zend_array * * symbol_table_used TSRMLS_DC )
476
476
{
477
477
int rc = FAILURE ;
478
478
zend_array * symbol_table_local ; /* php 5.3+, php 7+ */
@@ -518,12 +518,12 @@ static int _php_db2_hash_find_ind(char * varname, int varlen, zval **temp, zval
518
518
519
519
/* {{{ static void _php_db2_set_symbol(char * varname, zval *var)
520
520
*/
521
- static void _php_db2_set_symbol (char * varname , zval * var )
521
+ static void _php_db2_set_symbol (char * varname , zval * var TSRMLS_DC )
522
522
{
523
523
zval * * bind_data ; /* Data value from symbol table */
524
524
zval * temp = NULL ;
525
525
zend_array * symbol_table_used ; /* php 5.3+, php 7+ */
526
- if (_php_db2_hash_find_ind (varname , strlen (varname ), & temp , & bind_data , & symbol_table_used ) != FAILURE ) {
526
+ if (_php_db2_hash_find_ind (varname , strlen (varname ), & temp , & bind_data , & symbol_table_used TSRMLS_CC ) != FAILURE ) {
527
527
#if PHP_MAJOR_VERSION >= 7
528
528
/* $mydata = 3;
529
529
* function callme () {
@@ -4749,7 +4749,7 @@ static int _php_db2_bind_data( stmt_handle *stmt_res, param_node *curr, zval **b
4749
4749
convert_to_string (* bind_data );
4750
4750
}
4751
4751
/* make sure out and inout param allocation large enough for full length writes */
4752
- if ((rc = (_php_db2_bind_pad (curr , nullterm , isvarying , isbinary , & origlen , bind_data ))) == SQL_ERROR ) {
4752
+ if ((rc = (_php_db2_bind_pad (curr , nullterm , isvarying , isbinary , & origlen , bind_data TSRMLS_CC ))) == SQL_ERROR ) {
4753
4753
return SQL_ERROR ;
4754
4754
}
4755
4755
break ;
@@ -4925,7 +4925,7 @@ static int _php_db2_execute_helper(stmt_handle *stmt_res, zval **data, int bind_
4925
4925
/* Used when no parameters array is passed in */
4926
4926
curr = stmt_res -> head_cache_list ;
4927
4927
while (curr != NULL ) {
4928
- if (_php_db2_hash_find_ind (curr -> varname , strlen (curr -> varname ), & temp , & bind_data , & symbol_table_used ) != FAILURE ) {
4928
+ if (_php_db2_hash_find_ind (curr -> varname , strlen (curr -> varname ), & temp , & bind_data , & symbol_table_used TSRMLS_CC ) != FAILURE ) {
4929
4929
rc = _php_db2_bind_data ( stmt_res , curr , bind_data TSRMLS_CC );
4930
4930
if ( rc == SQL_ERROR ) {
4931
4931
php_error_docref (NULL TSRMLS_CC , E_WARNING , "Binding Error 1 ");
@@ -5250,7 +5250,7 @@ PHP_FUNCTION(db2_execute)
5250
5250
/* bind in the value of long_value instead */
5251
5251
tmp_curr -> value -> value .lval = (long )tmp_curr -> long_value ;
5252
5252
}
5253
- _php_db2_set_symbol (tmp_curr -> varname , tmp_curr -> value );
5253
+ _php_db2_set_symbol (tmp_curr -> varname , tmp_curr -> value TSRMLS_CC );
5254
5254
default :
5255
5255
break ;
5256
5256
}
0 commit comments