php friso,php binding 不兼容php7

下面是 make 的结果

/tmp/friso/binding/php/friso.c: In function 'zif_friso_split':

/tmp/friso/binding/php/friso.c:238:51: warning: passing argument 2 of 'zend_hash_get_current_data_ex' from incompatible pointer type

zend_hash_get_current_data_ex(cfgArr, (void **)&data, &pointer) == SUCCESS;

^

In file included from /usr/include/php/20151012/Zend/zend.h:36:0,

from /usr/include/php/20151012/main/php.h:35,

from /tmp/friso/binding/php/friso.c:6:

/usr/include/php/20151012/Zend/zend_hash.h:171:30: note: expected 'HashPosition *' but argument is of type 'void **'

ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos);

^

/tmp/friso/binding/php/friso.c:238:13: error: too many arguments to function 'zend_hash_get_current_data_ex'

zend_hash_get_current_data_ex(cfgArr, (void **)&data, &pointer) == SUCCESS;

^

In file included from /usr/include/php/20151012/Zend/zend.h:36:0,

from /usr/include/php/20151012/main/php.h:35,

from /tmp/friso/binding/php/friso.c:6:

/usr/include/php/20151012/Zend/zend_hash.h:171:30: note: declared here

ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos);

^

/tmp/friso/binding/php/friso.c:241:50: warning: passing argument 2 of 'zend_hash_get_current_key_ex' from incompatible pointer type

zend_hash_get_current_key_ex(cfgArr, &_key, &klen, NULL, 0, &pointer);

^

In file included from /usr/include/php/20151012/Zend/zend.h:36:0,

from /usr/include/php/20151012/main/php.h:35,

from /tmp/friso/binding/php/friso.c:6:

/usr/include/php/20151012/Zend/zend_hash.h:168:30: note: expected 'struct zend_string **' but argument is of type 'char **'

ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos);

^

/tmp/friso/binding/php/friso.c:241:57: warning: passing argument 3 of 'zend_hash_get_current_key_ex' from incompatible pointer type

zend_hash_get_current_key_ex(cfgArr, &_key, &klen, NULL, 0, &pointer);

^

In file included from /usr/include/php/20151012/Zend/zend.h:36:0,

from /usr/include/php/20151012/main/php.h:35,

from /tmp/friso/binding/php/friso.c:6:

/usr/include/php/20151012/Zend/zend_hash.h:168:30: note: expected 'zend_ulong *' but argument is of type 'int *'

ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos);

^

/tmp/friso/binding/php/friso.c:241:13: error: too many arguments to function 'zend_hash_get_current_key_ex'

zend_hash_get_current_key_ex(cfgArr, &_key, &klen, NULL, 0, &pointer);

^

In file included from /usr/include/php/20151012/Zend/zend.h:36:0,

from /usr/include/php/20151012/main/php.h:35,

from /tmp/friso/binding/php/friso.c:6:

/usr/include/php/20151012/Zend/zend_hash.h:168:30: note: declared here

ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos);

^

/tmp/friso/binding/php/friso.c:246:59: error: request for member 'val' in something not a structure or union

memcpy(nconfig->kpuncs, (*data)->value.str.val, (*data)->value.str.len);

^

/tmp/friso/binding/php/friso.c:246:83: error: request for member 'len' in something not a structure or union

memcpy(nconfig->kpuncs, (*data)->value.str.val, (*data)->value.str.len);

^

/tmp/friso/binding/php/friso.c:247:51: error: request for member 'len' in something not a structure or union

nconfig->kpuncs[(*data)->value.str.len] = '\0';

^

In file included from /usr/include/php/20151012/Zend/zend.h:31:0,

from /usr/include/php/20151012/main/php.h:35,

from /tmp/friso/binding/php/friso.c:6:

/usr/include/php/20151012/Zend/zend_types.h:336:39: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type

#define Z_TYPE(zval) zval_get_type(&(zval))

^

/usr/include/php/20151012/Zend/zend_types.h:337:28: note: in expansion of macro 'Z_TYPE'

#define Z_TYPE_P(zval_p) Z_TYPE(*(zval_p))

^

/usr/include/php/20151012/Zend/zend_operators.h:368:6: note: in expansion of macro 'Z_TYPE_P'

if (Z_TYPE_P(pzv)!=upper_type) { \

^

/usr/include/php/20151012/Zend/zend_operators.h:408:34: note: in expansion of macro 'convert_to_ex_master'

#define convert_to_long_ex(pzv) convert_to_ex_master(pzv, long, IS_LONG)

^

/tmp/friso/binding/php/friso.c:252:17: note: in expansion of macro 'convert_to_long_ex'

convert_to_long_ex(data);

^

/usr/include/php/20151012/Zend/zend_types.h:326:38: note: expected 'const struct zval *' but argument is of type 'struct zval **'

static zend_always_inline zend_uchar zval_get_type(const zval* pz) {

^

In file included from /usr/include/php/20151012/Zend/zend.h:341:0,

from /usr/include/php/20151012/main/php.h:35,

from /tmp/friso/binding/php/friso.c:6:

/tmp/friso/binding/php/friso.c:252:36: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type

convert_to_long_ex(data);

^

/usr/include/php/20151012/Zend/zend_operators.h:369:27: note: in definition of macro 'convert_to_ex_master'

convert_to_##lower_type(pzv); \

^

/tmp/friso/binding/php/friso.c:252:17: note: in expansion of macro 'convert_to_long_ex'

convert_to_long_ex(data);

^

/usr/include/php/20151012/Zend/zend_operators.h:244:29: note: expected 'struct zval *' but argument is of type 'struct zval **'

ZEND_API void ZEND_FASTCALL convert_to_long(zval *op);

^

/tmp/friso/binding/php/friso.c:296:60: error: macro "add_assoc_string" passed 4 arguments, but takes just 3

add_assoc_string(item, "word", task->token->word, 1);

^

/tmp/friso/binding/php/friso.c:296:9: error: 'add_assoc_string' undeclared (first use in this function)

add_assoc_string(item, "word", task->token->word, 1);

^

/tmp/friso/binding/php/friso.c:296:9: note: each undeclared identifier is reported only once for each function it appears in

/tmp/friso/binding/php/friso.c:307:67: error: macro "add_assoc_stringl" passed 5 arguments, but takes just 4

add_assoc_stringl(item, "pos", &task->token->pos, 1, 1);

^

/tmp/friso/binding/php/friso.c:307:13: error: 'add_assoc_stringl' undeclared (first use in this function)

add_assoc_stringl(item, "pos", &task->token->pos, 1, 1);

^

/tmp/friso/binding/php/friso.c: In function 'zif_friso_version':

/tmp/friso/binding/php/friso.c:326:59: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2

RETURN_STRINGL(FRISO_VERSION, strlen(FRISO_VERSION), 1);

^

/tmp/friso/binding/php/friso.c:326:5: error: 'RETURN_STRINGL' undeclared (first use in this function)

RETURN_STRINGL(FRISO_VERSION, strlen(FRISO_VERSION), 1);

^

/tmp/friso/binding/php/friso.c: In function 'zif_friso_charset':

/tmp/friso/binding/php/friso.c:335:47: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2

RETURN_STRINGL(charset, strlen(charset), 1);

^

/tmp/friso/binding/php/friso.c:335:5: error: 'RETURN_STRINGL' undeclared (first use in this function)

RETURN_STRINGL(charset, strlen(charset), 1);

^

/tmp/friso/binding/php/friso.c: In function 'zif_friso_ucode_utf8':

/tmp/friso/binding/php/friso.c:452:37: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2

RETURN_STRINGL( word, _bytes, 1 );

^

/tmp/friso/binding/php/friso.c:452:5: error: 'RETURN_STRINGL' undeclared (first use in this function)

RETURN_STRINGL( word, _bytes, 1 );

^

Makefile:193: recipe for target 'friso.lo' failed

make: *** [friso.lo] Error 1

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值