1
0
Fork 0

PHP6: fix #49, builds again with php 6 devel

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@263 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.2
Xuefer 2006-10-21 06:06:38 +00:00
parent 83aa3950ec
commit 8215d97228
1 changed files with 27 additions and 0 deletions

View File

@ -34,6 +34,33 @@
# define ZESW(v1, v2) v2
#endif
/* {{{ dirty fix for PHP 6 */
#ifdef add_assoc_long_ex
static inline void my_add_assoc_long_ex(zval *arg, char *key, uint key_len, long value)
{
add_assoc_long_ex(arg, key, key_len, value);
}
# undef add_assoc_long_ex
# define add_assoc_long_ex my_add_assoc_long_ex
#endif
#ifdef add_assoc_bool_ex
static inline void my_add_assoc_bool_ex(zval *arg, char *key, uint key_len, zend_bool value)
{
add_assoc_bool_ex(arg, key, key_len, value);
}
# undef add_assoc_bool_ex
# define add_assoc_bool_ex my_add_assoc_bool_ex
#endif
#ifdef add_assoc_null_ex
static inline void my_add_assoc_null_ex(zval *arg, char *key, uint key_len)
{
add_assoc_null_ex(arg, key, key_len);
}
# undef add_assoc_null_ex
# define add_assoc_null_ex my_add_assoc_null_ex
#endif
/* }}} */
/* unicode */
#ifdef IS_UNICODE
# define UNISW(text, unicode) unicode