summaryrefslogtreecommitdiff
path: root/ext/oci8/php_oci8_int.h
diff options
context:
space:
mode:
authorChristopher Jones <christopher.jones@oracle.com>2018-12-07 23:07:37 +1100
committerChristopher Jones <christopher.jones@oracle.com>2018-12-07 23:07:37 +1100
commitb797818e09d3d2f7b81ca4c8c4e4bb874f623c87 (patch)
tree6088b04c49c34f42844906de76ff11093e1ac51e /ext/oci8/php_oci8_int.h
parentbc32061dba0abce21baed7b03c8f9e39836ab28f (diff)
downloadphp-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.h8
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 */