diff options
author | Christopher Jones <christopher.jones@oracle.com> | 2018-12-07 23:07:37 +1100 |
---|---|---|
committer | Christopher Jones <christopher.jones@oracle.com> | 2018-12-07 23:07:37 +1100 |
commit | b797818e09d3d2f7b81ca4c8c4e4bb874f623c87 (patch) | |
tree | 6088b04c49c34f42844906de76ff11093e1ac51e /ext/oci8/php_oci8_int.h | |
parent | bc32061dba0abce21baed7b03c8f9e39836ab28f (diff) | |
download | php-git-b797818e09d3d2f7b81ca4c8c4e4bb874f623c87.tar.gz |
Simplify based on feedback from nikic
Diffstat (limited to 'ext/oci8/php_oci8_int.h')
-rw-r--r-- | ext/oci8/php_oci8_int.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/oci8/php_oci8_int.h b/ext/oci8/php_oci8_int.h index 90448d36ea..8455277e59 100644 --- a/ext/oci8/php_oci8_int.h +++ b/ext/oci8/php_oci8_int.h @@ -545,6 +545,14 @@ int php_oci_unregister_taf_callback(php_oci_connection *connection); #define OCI_G(v) (oci_globals.v) #endif +/* Allow install from PECL on PHP < 7.3 */ +#ifndef GC_ADDREF +# define GC_ADDREF(p) (++GC_REFCOUNT(p)) +#endif +#ifndef GC_DELREF +# define GC_DELREF(p) (GC_REFCOUNT(p)--) +#endif + ZEND_EXTERN_MODULE_GLOBALS(oci) # endif /* !PHP_OCI8_INT_H */ |