projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
add boundary check
[m6w6/ext-http]
/
php_http_misc.h
diff --git
a/php_http_misc.h
b/php_http_misc.h
index 75090bdad4cc70dccffae0130e87d8f63dc8ae9c..fe08d6d1d5efd63b3b54c1adab9362d0d493a431 100644
(file)
--- a/
php_http_misc.h
+++ b/
php_http_misc.h
@@
-127,6
+127,12
@@
static inline const char *php_http_locate_bin_eol(const char *bin, size_t len, i
# define PHP_HTTP_ZEND_LITERAL_CCN , NULL
#endif
+#if PHP_VERSION_ID < 50700
+# define z_is_true zend_is_true
+#else
+# define z_is_true(z) zend_is_true(z TSRMLS_CC)
+#endif
+
#define INIT_PZVAL_ARRAY(zv, ht) \
{ \
INIT_PZVAL((zv)); \