File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -563,7 +563,7 @@ PHP_RSHUTDOWN_FUNCTION(oci)
563
563
{
564
564
oci_debug ("START php_rshutdown_oci" );
565
565
566
- #if 0
566
+ #if 0
567
567
/* XXX free all statements, rollback all outstanding transactions */
568
568
569
569
zend_hash_apply (OCI (user ),(int (* )(void * ))_session_cleanup );
@@ -649,8 +649,12 @@ _oci_bind_post_exec(void *data)
649
649
zval * val = bind -> zval ;
650
650
zval_dtor (val );
651
651
ZVAL_NULL (val );
652
+ } else if (bind -> zval -> type == IS_STRING ) {
653
+ bind -> zval -> value .str .val = realloc (bind -> zval -> value .str .val , bind -> zval -> value .str .len + 1 );
654
+ bind -> zval -> value .str .val [ bind -> zval -> value .str .len ] = '\0' ;
652
655
}
653
656
657
+
654
658
return 0 ;
655
659
}
656
660
Original file line number Diff line number Diff line change @@ -181,6 +181,8 @@ typedef struct {
181
181
HashTable * user ;
182
182
183
183
OCIEnv * pEnv ;
184
+
185
+ int in_call ;
184
186
} php_oci_globals ;
185
187
186
188
extern zend_module_entry oci8_module_entry ;
You can’t perform that action at this time.
0 commit comments