diff options
| author | Antony Dovgal <tony2001@php.net> | 2006-08-21 16:41:13 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2006-08-21 16:41:13 +0000 |
| commit | 70e59e299909a106b8b27cb40525d6a367084e72 (patch) | |
| tree | 4feb30f920fa93fb54c941c2f49f4cd4de9d4163 /ext/oci8/php_oci8_int.h | |
| parent | 672da2daeb60aad0a4c08b7784146dd997a59b45 (diff) | |
| download | php-git-70e59e299909a106b8b27cb40525d6a367084e72.tar.gz | |
MFH: fix PECL bug #8112 (OCI8 persistent connections misbehave when Apache process times out)
Diffstat (limited to 'ext/oci8/php_oci8_int.h')
| -rw-r--r-- | ext/oci8/php_oci8_int.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/oci8/php_oci8_int.h b/ext/oci8/php_oci8_int.h index 3f12b49737..b3b902347f 100644 --- a/ext/oci8/php_oci8_int.h +++ b/ext/oci8/php_oci8_int.h @@ -221,7 +221,17 @@ typedef struct { /* php_oci_out_column {{{ */ /* {{{ macros */ #define PHP_OCI_CALL(func, params) \ + OCI_G(in_call) = 1; \ func params; \ + OCI_G(in_call) = 0; \ + if (OCI_G(debug_mode)) { \ + php_printf ("OCI8 DEBUG: " #func " at (%s:%d) \n", __FILE__, __LINE__); \ + } + +#define PHP_OCI_CALL_RETURN(__retval, func, params) \ + OCI_G(in_call) = 1; \ + __retval = func params; \ + OCI_G(in_call) = 0; \ if (OCI_G(debug_mode)) { \ php_printf ("OCI8 DEBUG: " #func " at (%s:%d) \n", __FILE__, __LINE__); \ } @@ -412,6 +422,8 @@ ZEND_BEGIN_MODULE_GLOBALS(oci) /* {{{ */ OCIEnv *env; /* global environment handle */ + zend_bool in_call; + ZEND_END_MODULE_GLOBALS(oci) /* }}} */ #ifdef ZTS |
