projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
fix PHP_5_3 build
[m6w6/ext-http]
/
php_http_api.h
diff --git
a/php_http_api.h
b/php_http_api.h
index 7163dc1fd8ab48118cb16a762550b3236960604d..809f1426419871057c72e4b0ac0ee6fbcbeb6553 100644
(file)
--- a/
php_http_api.h
+++ b/
php_http_api.h
@@
-296,8
+296,13
@@
static inline zval *_zval_copy(int type, zval *z ZEND_FILE_LINE_DC ZEND_FILE_LIN
*copy = *z;
zval_copy_ctor(copy);
convert_to_type(type, copy);
+#ifdef Z_SET_REFCOUNT
+ Z_SET_REFCOUNT_P(copy, 0);
+ Z_UNSET_ISREF_P(copy);
+#else
copy->refcount = 0;
copy->is_ref = 0;
+#endif
return copy;
}