summaryrefslogtreecommitdiff
path: root/ext/oracle/oracle.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/oracle/oracle.c')
-rw-r--r--ext/oracle/oracle.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/oracle/oracle.c b/ext/oracle/oracle.c
index 69ddea8881..1420fe0901 100644
--- a/ext/oracle/oracle.c
+++ b/ext/oracle/oracle.c
@@ -285,6 +285,10 @@ static int _close_oracur(oraCursor *cur)
PHP_MINIT_FUNCTION(oracle)
{
+
+ ELS_FETCH();
+ ORALS_FETCH();
+
if (cfg_get_long("oracle.allow_persistent",
&ORA(allow_persistent))
== FAILURE) {
@@ -355,8 +359,6 @@ PHP_MSHUTDOWN_FUNCTION(oracle)
PHP_RSHUTDOWN_FUNCTION(oracle)
{
- ORALS_FETCH();
-
return SUCCESS;
}
@@ -1814,6 +1816,9 @@ int ora_set_param_values(oraCursor *cursor, int isout)
/* see variables.c */
HashTable *symbol_table=php3i_get_symbol_table();
#endif
+
+ ELS_FETCH();
+
zend_hash_internal_pointer_reset(cursor->params);
if(zend_hash_num_elements(cursor->params) != cursor->nparams){