summaryrefslogtreecommitdiff
path: root/ext/mysqli
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2007-10-16 20:56:22 +0000
committerAndrey Hristov <andrey@php.net>2007-10-16 20:56:22 +0000
commit8a2e9e60435021447aa877531138b0ce95f255b0 (patch)
tree043170d7f391f19cf17fb8be4ceb5ccdd8f3dc8c /ext/mysqli
parentc9e481590f73ca35424088b24d2212b6b5034aef (diff)
downloadphp-git-8a2e9e60435021447aa877531138b0ce95f255b0.tar.gz
Sync mysqlnd. Should still compile with 5_2 for those who want to use the
current stable branch. mysqli from 5_3 patched for mysqlnd should be also compilable with 5_2.
Diffstat (limited to 'ext/mysqli')
-rw-r--r--ext/mysqli/mysqli.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index c2fda21b0e..7aca237494 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -315,6 +315,14 @@ static int mysqli_write_na(mysqli_object *obj, zval *newval TSRMLS_DC)
}
/* }}} */
+#ifndef Z_ADDREF_P
+/* PHP 5.2, old GC */
+#define Z_ADDREF_P(pz) (++(pz)->refcount)
+#define Z_REFCOUNT_P(pz) ((pz)->refcount)
+#define Z_SET_REFCOUNT_P(pz, rc) ((pz)->refcount = rc)
+#endif
+
+
/* {{{ mysqli_read_property */
zval *mysqli_read_property(zval *object, zval *member, int type TSRMLS_DC)
{