summaryrefslogtreecommitdiff
path: root/xcache
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2013-07-15 02:30:59 +0000
committerXuefer <xuefer@gmail.com>2013-07-15 02:30:59 +0000
commit31e5f026ded9b66e371627b8135018cf3d53f915 (patch)
treeff190228c7e79451f74f425de08852f8081bbfce /xcache
parentc4d23d3884dc66db81690922913414fd31c8c2e1 (diff)
downloadxcache-31e5f026ded9b66e371627b8135018cf3d53f915.tar.gz
xcache-31e5f026ded9b66e371627b8135018cf3d53f915.zip
ZEND_STRS ZEND_STRL is inconsist between PHP5.0- and PHP5.0+
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1313 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'xcache')
-rw-r--r--xcache/xc_utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xcache/xc_utils.h b/xcache/xc_utils.h
index 84ad288..0688059 100644
--- a/xcache/xc_utils.h
+++ b/xcache/xc_utils.h
@@ -1,6 +1,9 @@
#include "xcache.h"
#include "xc_compatibility.h"
+#define XCACHE_STRS(str) (str), sizeof(str)
+#define XCACHE_STRL(str) (str), (sizeof(str) - 1)
+
typedef zend_op_array *(zend_compile_file_t)(zend_file_handle *h, int type TSRMLS_DC);
typedef struct _xc_compilererror_t {