tarantool/tarantool-php

Problem build tarantool-php with gcc-7.3.0

swood opened this issue · 0 comments

swood commented

Hello.

I have a problem with build tarantool.so via gcc-7.3.0. The build log below:

/bin/bash /usr/src/tarantool-php/libtool --mode=compile cc -I. -I/usr/src/tarantool-php -DPHP_ATOM_INC -I/usr/src/tarantool-php/include -I/usr/src/tarantool-php/main -I/usr/src/tarantool-php -I/usr/include/php/20160303 -I/usr/include/php/20160303/main -I/usr/include/php/20160303/TSRM -I/usr/include/php/20160303/Zend -I/usr/include/php/20160303/ext -I/usr/include/php/20160303/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/src/tarantool-php/src/tarantool.c -o src/tarantool.lo
libtool: compile: cc -I. -I/usr/src/tarantool-php -DPHP_ATOM_INC -I/usr/src/tarantool-php/include -I/usr/src/tarantool-php/main -I/usr/src/tarantool-php -I/usr/include/php/20160303 -I/usr/include/php/20160303/main -I/usr/include/php/20160303/TSRM -I/usr/include/php/20160303/Zend -I/usr/include/php/20160303/ext -I/usr/include/php/20160303/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/src/tarantool-php/src/tarantool.c -fPIC -DPIC -o src/.libs/tarantool.o
/usr/src/tarantool-php/src/tarantool.c: In function ‘php_tarantool_get_exception_base’:
/usr/src/tarantool-php/src/tarantool.c:86:40: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(CG(class_table), "runtimeexception",
^~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: expected ‘zend_string * {aka struct _zend_string *}’ but argument is of type ‘char
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string key);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:86:8: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(CG(class_table), "runtimeexception",
^~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c: At top level:
/usr/src/tarantool-php/src/tarantool.c:327:8: error: unknown type name ‘zend_object_value’
static zend_object_value tarantool_create(zend_class_entry *ce TSRMLS_DC) {
^~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c: In function ‘tarantool_create’:
/usr/src/tarantool-php/src/tarantool.c:328:2: error: unknown type name ‘zend_object_value’; did you mean ‘zend_objects_store’?
zend_object_value retval;
^~~~~~~~~~~~~~~~~
zend_objects_store
/usr/src/tarantool-php/src/tarantool.c:343:8: error: request for member ‘handle’ in something not a structure or union
retval.handle = zend_objects_store_put(obj,
^
/usr/src/tarantool-php/src/tarantool.c:344:4: error: ‘zend_objects_store_dtor_t’ undeclared (first use in this function); did you mean ‘zend_objects_store_free’?
(zend_objects_store_dtor_t )zend_objects_destroy_object,
^~~~~~~~~~~~~~~~~~~~~~~~~
zend_objects_store_free
/usr/src/tarantool-php/src/tarantool.c:344:4: note: each undeclared identifier is reported only once for each function it appears in
/usr/src/tarantool-php/src/tarantool.c:344:31: error: expected ‘)’ before ‘zend_objects_destroy_object’
(zend_objects_store_dtor_t )zend_objects_destroy_object,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:343:41: warning: passing argument 1 of ‘zend_objects_store_put’ from incompatible pointer type [-Wincompatible-pointer-types]
retval.handle = zend_objects_store_put(obj,
^~~
In file included from /usr/include/php/20160303/Zend/zend_globals.h:35:0,
from /usr/include/php/20160303/Zend/zend_compile.h:688,
from /usr/include/php/20160303/Zend/zend_modules.h:26,
from /usr/include/php/20160303/Zend/zend_API.h:27,
from /usr/include/php/20160303/main/php.h:40,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_objects_API.h:58:15: note: expected ‘zend_object * {aka struct _zend_object *}’ but argument is of type ‘tarantool_object * {aka struct tarantool_object *}’
ZEND_API void zend_objects_store_put(zend_object *object);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:343:18: error: too many arguments to function ‘zend_objects_store_put’
retval.handle = zend_objects_store_put(obj,
^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend_globals.h:35:0,
from /usr/include/php/20160303/Zend/zend_compile.h:688,
from /usr/include/php/20160303/Zend/zend_modules.h:26,
from /usr/include/php/20160303/Zend/zend_API.h:27,
from /usr/include/php/20160303/main/php.h:40,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_objects_API.h:58:15: note: declared here
ZEND_API void zend_objects_store_put(zend_object *object);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:347:8: error: request for member ‘handlers’ in something not a structure or union
retval.handlers = zend_get_std_object_handlers();
^
/usr/src/tarantool-php/src/tarantool.c: In function ‘tarantool_step_recv’:
/usr/src/tarantool-php/src/tarantool.c:380:6: warning: implicit declaration of function ‘Z_TYPE_PP’; did you mean ‘Z_TYPE_P’? [-Wimplicit-function-declaration]
Z_TYPE_PP(header) != IS_ARRAY) {
^~~~~~~~~
Z_TYPE_P
/usr/src/tarantool-php/src/tarantool.c:396:6: error: too many arguments to function ‘zend_hash_index_find’
if (zend_hash_index_find(hash, TNT_SYNC, (void *)&val) == SUCCESS) {
^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:163:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
^~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:397:7: warning: implicit declaration of function ‘Z_LVAL_PP’; did you mean ‘Z_LVAL_P’? [-Wimplicit-function-declaration]
if (Z_LVAL_PP(val) != sync) {
^~~~~~~~~
Z_LVAL_P
/usr/src/tarantool-php/src/tarantool.c:404:6: error: too many arguments to function ‘zend_hash_index_find’
if (zend_hash_index_find(hash, TNT_CODE, (void *)&val) == SUCCESS) {
^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:163:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
^~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:413:7: error: too many arguments to function ‘zend_hash_index_find’
if (zend_hash_index_find(hash, TNT_ERROR, (void *)&errstr) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:163:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
^~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:413:63: warning: comparison between pointer and integer
if (zend_hash_index_find(hash, TNT_ERROR, (void **)&errstr) == FAILURE) {
^~
/usr/src/tarantool-php/src/tarantool.c:414:4: warning: implicit declaration of function ‘ALLOC_INIT_ZVAL’ [-Wimplicit-function-declaration]
ALLOC_INIT_ZVAL(*errstr);
^~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:415:35: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2
ZVAL_STRING(*errstr, "empty", 1);
^
/usr/src/tarantool-php/src/tarantool.c:415:4: error: ‘ZVAL_STRING’ undeclared (first use in this function); did you mean ‘ZEND_STR_LINE’?
ZVAL_STRING(*errstr, "empty", 1);
^~~~~~~~~~~
ZEND_STR_LINE
In file included from /usr/src/tarantool-php/src/tarantool.c:5:0:
/usr/src/tarantool-php/src/tarantool.c:417:44: warning: implicit declaration of function ‘Z_STRVAL_PP’; did you mean ‘Z_STRVAL_P’? [-Wimplicit-function-declaration]
THROW_EXC("Query error %d: %s", errcode, Z_STRVAL_PP(errstr),
^
/usr/src/tarantool-php/src/php_tarantool.h:125:53: note: in definition of macro ‘THROW_EXC’
zend_exception_get_default(TSRMLS_C), 0 TSRMLS_CC, VA_ARGS)
^~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:418:6: warning: implicit declaration of function ‘Z_STRLEN_PP’; did you mean ‘Z_STRLEN_P’? [-Wimplicit-function-declaration]
Z_STRLEN_PP(errstr));
^
/usr/src/tarantool-php/src/php_tarantool.h:125:53: note: in definition of macro ‘THROW_EXC’
zend_exception_get_default(TSRMLS_C), 0 TSRMLS_CC, VA_ARGS)
^~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:426:15: note: in expansion of macro ‘zval_ptr_dtor’
if (*header) zval_ptr_dtor(header);
^~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:427:13: note: in expansion of macro ‘zval_ptr_dtor’
if (*body) zval_ptr_dtor(body);
^~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c: In function ‘tarantool_update_verify_op’:
/usr/src/tarantool-php/src/tarantool.c:661:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "op", 3, (void **)&opstr) == FAILURE ||
^~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: expected ‘zend_string * {aka struct _zend_string *}’ but argument is of type ‘char
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:661:6: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "op", 3, (void *)&opstr) == FAILURE ||
^~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:661:51: warning: comparison between pointer and integer
if (zend_hash_find(ht, "op", 3, (void **)&opstr) == FAILURE ||
^~
/usr/src/tarantool-php/src/tarantool.c:668:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "field", 6, (void **)&oppos) == FAILURE ||
^~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: expected ‘zend_string * {aka struct _zend_string *}’ but argument is of type ‘char
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:668:6: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "field", 6, (void *)&oppos) == FAILURE ||
^~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:668:54: warning: comparison between pointer and integer
if (zend_hash_find(ht, "field", 6, (void **)&oppos) == FAILURE ||
^~
/usr/src/tarantool-php/src/tarantool.c:675:27: error: subscripted value is neither array nor pointer nor vector
switch(Z_STRVAL_PP(opstr)[0]) {
^
/usr/src/tarantool-php/src/tarantool.c:682:26: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "offset", 7,
^~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: expected ‘zend_string * {aka struct _zend_string *}’ but argument is of type ‘char
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string key);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:682:7: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "offset", 7,
^~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:683:22: warning: comparison between pointer and integer
(void **)&oparg) == FAILURE ||
^~
/usr/src/tarantool-php/src/tarantool.c:689:26: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "length", 7, (void **)&splice_len) == FAILURE ||
^~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: expected ‘zend_string * {aka struct _zend_string *}’ but argument is of type ‘char
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:689:7: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "length", 7, (void *)&splice_len) == FAILURE ||
^~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:689:61: warning: comparison between pointer and integer
if (zend_hash_find(ht, "length", 7, (void **)&splice_len) == FAILURE ||
^~
/usr/src/tarantool-php/src/tarantool.c:695:26: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "list", 5, (void **)&splice_val) == FAILURE ||
^~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: expected ‘zend_string * {aka struct _zend_string *}’ but argument is of type ‘char
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:695:7: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "list", 5, (void *)&splice_val) == FAILURE ||
^~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:695:59: warning: comparison between pointer and integer
if (zend_hash_find(ht, "list", 5, (void **)&splice_val) == FAILURE ||
^~
/usr/src/tarantool-php/src/tarantool.c:701:31: warning: passing argument 2 of ‘add_next_index_stringl’ makes pointer from integer without a cast [-Wint-conversion]
add_next_index_stringl(arr, Z_STRVAL_PP(opstr), 1, 1);
^~~~~~~~~~~
In file included from /usr/include/php/20160303/main/php.h:40:0,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_API.h:438:14: note: expected ‘const char *’ but argument is of type ‘int’
ZEND_API int add_next_index_stringl(zval *arg, const char *str, size_t length);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:701:3: error: too many arguments to function ‘add_next_index_stringl’
add_next_index_stringl(arr, Z_STRVAL_PP(opstr), 1, 1);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/main/php.h:40:0,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_API.h:438:14: note: declared here
ZEND_API int add_next_index_stringl(zval *arg, const char *str, size_t length);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:705:31: warning: passing argument 2 of ‘add_next_index_stringl’ makes pointer from integer without a cast [-Wint-conversion]
add_next_index_stringl(arr, Z_STRVAL_PP(splice_val),
^~~~~~~~~~~
In file included from /usr/include/php/20160303/main/php.h:40:0,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_API.h:438:14: note: expected ‘const char *’ but argument is of type ‘int’
ZEND_API int add_next_index_stringl(zval *arg, const char *str, size_t length);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:705:3: error: too many arguments to function ‘add_next_index_stringl’
add_next_index_stringl(arr, Z_STRVAL_PP(splice_val),
^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/main/php.h:40:0,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_API.h:438:14: note: declared here
ZEND_API int add_next_index_stringl(zval *arg, const char *str, size_t length);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:719:26: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "arg", 4, (void **)&oparg) == FAILURE ||
^~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: expected ‘zend_string * {aka struct _zend_string *}’ but argument is of type ‘char
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:719:7: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "arg", 4, (void *)&oparg) == FAILURE ||
^~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:719:53: warning: comparison between pointer and integer
if (zend_hash_find(ht, "arg", 4, (void **)&oparg) == FAILURE ||
^~
/usr/src/tarantool-php/src/tarantool.c:725:31: warning: passing argument 2 of ‘add_next_index_stringl’ makes pointer from integer without a cast [-Wint-conversion]
add_next_index_stringl(arr, Z_STRVAL_PP(opstr), 1, 1);
^~~~~~~~~~~
In file included from /usr/include/php/20160303/main/php.h:40:0,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_API.h:438:14: note: expected ‘const char *’ but argument is of type ‘int’
ZEND_API int add_next_index_stringl(zval *arg, const char *str, size_t length);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:725:3: error: too many arguments to function ‘add_next_index_stringl’
add_next_index_stringl(arr, Z_STRVAL_PP(opstr), 1, 1);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/main/php.h:40:0,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_API.h:438:14: note: declared here
ZEND_API int add_next_index_stringl(zval *arg, const char *str, size_t length);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:736:26: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, "arg", 4, (void **)&oparg) == FAILURE ||
^~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: expected ‘zend_string * {aka struct _zend_string *}’ but argument is of type ‘char
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:736:7: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(ht, "arg", 4, (void *)&oparg) == FAILURE ||
^~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:736:53: warning: comparison between pointer and integer
if (zend_hash_find(ht, "arg", 4, (void **)&oparg) == FAILURE ||
^~
In file included from /usr/src/tarantool-php/src/tarantool.c:8:0:
/usr/src/tarantool-php/src/tarantool_msgpack.h:9:23: error: ‘IS_BOOL’ undeclared (first use in this function); did you mean ‘_IS_BOOL’?
Z_TYPE_PP(v) == IS_BOOL ||
^
/usr/src/tarantool-php/src/tarantool.c:737:16: note: in expansion of macro ‘PHP_MP_SERIALIZABLE_PP’
!oparg || !PHP_MP_SERIALIZABLE_PP(oparg)) {
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:742:31: warning: passing argument 2 of ‘add_next_index_stringl’ makes pointer from integer without a cast [-Wint-conversion]
add_next_index_stringl(arr, Z_STRVAL_PP(opstr), 1, 1);
^~~~~~~~~~~
In file included from /usr/include/php/20160303/main/php.h:40:0,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_API.h:438:14: note: expected ‘const char *’ but argument is of type ‘int’
ZEND_API int add_next_index_stringl(zval *arg, const char *str, size_t length);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:742:3: error: too many arguments to function ‘add_next_index_stringl’
add_next_index_stringl(arr, Z_STRVAL_PP(opstr), 1, 1);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/main/php.h:40:0,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_API.h:438:14: note: declared here
ZEND_API int add_next_index_stringl(zval *arg, const char *str, size_t length);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:744:3: warning: implicit declaration of function ‘SEPARATE_ZVAL_TO_MAKE_IS_REF’; did you mean ‘SEPARATE_ZVAL_IF_NOT_REF’? [-Wimplicit-function-declaration]
SEPARATE_ZVAL_TO_MAKE_IS_REF(oparg);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
SEPARATE_ZVAL_IF_NOT_REF
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:754:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&arr);
^~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c: In function ‘tarantool_update_verify_args’:
/usr/src/tarantool-php/src/tarantool.c:770:16: error: too many arguments to function ‘zend_hash_index_find’
int status = zend_hash_index_find(ht, key_index,
^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:163:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
^~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:770:16: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
int status = zend_hash_index_find(ht, key_index,
^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:783:5: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&op_arr);
^~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:789:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&arr);
^~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct zval_struct *}’ but argument is of type ‘zval ** {aka struct zval_struct **}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c: In function ‘php_tarantool_dtor’:
/usr/src/tarantool-php/src/tarantool.c:933:6: error: ‘rsrc’ undeclared (first use in this function)
if (rsrc->ptr) {
^~~~
/usr/src/tarantool-php/src/tarantool.c: In function ‘zm_startup_tarantool’:
/usr/src/tarantool-php/src/tarantool.c:987:30: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
tarantool_ce->create_object = tarantool_create;
^
/usr/src/tarantool-php/src/tarantool.c:1012:27: error: too many arguments to function ‘zend_register_internal_class_ex’
tarantool_exception_ce = zend_register_internal_class_ex(&ce,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/main/php.h:40:0,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_API.h:292:28: note: declared here
ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c: In function ‘zim_Tarantool___construct’:
/usr/src/tarantool-php/src/tarantool.c:39:4: warning: implicit declaration of function ‘zend_object_store_get_object’; did you mean ‘zend_object_store_set_object’? [-Wimplicit-function-declaration]
zend_object_store_get_object(ID TSRMLS_CC);
^
/usr/src/tarantool-php/src/tarantool.c:1048:2: note: in expansion of macro ‘TARANTOOL_FETCH_OBJECT’
TARANTOOL_FETCH_OBJECT(obj, id);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:38:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
tarantool_object *t
##NAME = (tarantool_object *)
^
/usr/src/tarantool-php/src/tarantool.c:1048:2: note: in expansion of macro ‘TARANTOOL_FETCH_OBJECT’
TARANTOOL_FETCH_OBJECT(obj, id);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1074:3: error: unknown type name ‘zend_rsrc_list_entry’; did you mean ‘zend_rsrc_list_dtors_entry’?
zend_rsrc_list_entry *le = NULL;
^~~~~~~~~~~~~~~~~~~~
zend_rsrc_list_dtors_entry
/usr/src/tarantool-php/src/tarantool.c:67:39: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
zend_hash_find(&EG(persistent_list), (NAME), (LEN),
^
/usr/src/tarantool-php/src/tarantool.c:1079:7: note: in expansion of macro ‘TARANTOOL_PERSISTENT_FIND’
if (TARANTOOL_PERSISTENT_FIND(plist_id, plist_id_len, le) ==
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: expected ‘zend_string * {aka struct zend_string *}’ but argument is of type ‘const char
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string key);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:67:2: error: too many arguments to function ‘zend_hash_find’
zend_hash_find(&EG(persistent_list), (NAME), (LEN),
^
/usr/src/tarantool-php/src/tarantool.c:1079:7: note: in expansion of macro ‘TARANTOOL_PERSISTENT_FIND’
if (TARANTOOL_PERSISTENT_FIND(plist_id, plist_id_len, le) ==
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1082:10: error: request for member ‘type’ in something not a structure or union
if (le->type == php_tarantool_list_entry()) {
^~
/usr/src/tarantool-php/src/tarantool.c:1083:45: error: request for member ‘ptr’ in something not a structure or union
obj = (struct tarantool_connection *) le->ptr;
^~
/usr/src/tarantool-php/src/tarantool.c:1131:3: error: unknown type name ‘zend_rsrc_list_entry’; did you mean ‘zend_rsrc_list_dtors_entry’?
zend_rsrc_list_entry le;
^~~~~~~~~~~~~~~~~~~~
zend_rsrc_list_dtors_entry
/usr/src/tarantool-php/src/tarantool.c:1132:25: error: ‘zend_rsrc_list_entry’ undeclared (first use in this function); did you mean ‘zend_rsrc_list_dtors_entry’?
memset(&le, 0, sizeof(zend_rsrc_list_entry));
^~~~~~~~~~~~~~~~~~~~
zend_rsrc_list_dtors_entry
/usr/src/tarantool-php/src/tarantool.c:1134:5: error: request for member ‘type’ in something not a structure or union
le.type = php_tarantool_list_entry();
^
/usr/src/tarantool-php/src/tarantool.c:1135:5: error: request for member ‘ptr’ in something not a structure or union
le.ptr = obj;
^
/usr/src/tarantool-php/src/tarantool.c:1139:14: error: macro "zend_hash_update" passed 6 arguments, but takes just 3
NULL) == FAILURE) {
^
/usr/src/tarantool-php/src/tarantool.c:1136:7: error: ‘zend_hash_update’ undeclared (first use in this function); did you mean ‘zend_hash_update’?
if (zend_hash_update(&EG(persistent_list), plist_id,
^~~~~~~~~~~~~~~~
zend_hash_update
/usr/src/tarantool-php/src/tarantool.c: In function ‘zim_Tarantool_connect’:
/usr/src/tarantool-php/src/tarantool.c:38:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
tarantool_object *t
##NAME = (tarantool_object *)
^
/usr/src/tarantool-php/src/tarantool.c:1159:2: note: in expansion of macro ‘TARANTOOL_FETCH_OBJECT’
TARANTOOL_FETCH_OBJECT(obj, id);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c: In function ‘zim_Tarantool_reconnect’:
/usr/src/tarantool-php/src/tarantool.c:38:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
tarantool_object *t
##NAME = (tarantool_object *)
^
/usr/src/tarantool-php/src/tarantool.c:1168:2: note: in expansion of macro ‘TARANTOOL_FETCH_OBJECT’
TARANTOOL_FETCH_OBJECT(obj, id);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c: In function ‘zim_Tarantool_authenticate’:
/usr/src/tarantool-php/src/tarantool.c:38:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
tarantool_object *t
##NAME = (tarantool_object *)
^
/usr/src/tarantool-php/src/tarantool.c:1259:2: note: in expansion of macro ‘TARANTOOL_FETCH_OBJECT’
TARANTOOL_FETCH_OBJECT(obj, id);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c: In function ‘zim_Tarantool_flush_schema’:
/usr/src/tarantool-php/src/tarantool.c:38:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
tarantool_object *t
##NAME = (tarantool_object *)
^
/usr/src/tarantool-php/src/tarantool.c:1280:2: note: in expansion of macro ‘TARANTOOL_FETCH_OBJECT’
TARANTOOL_FETCH_OBJECT(obj, id);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c: In function ‘zim_Tarantool_close’:
/usr/src/tarantool-php/src/tarantool.c:38:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
tarantool_object *t
##NAME = (tarantool_object *)
^
/usr/src/tarantool-php/src/tarantool.c:1288:2: note: in expansion of macro ‘TARANTOOL_FETCH_OBJECT’
TARANTOOL_FETCH_OBJECT(obj, id);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c: In function ‘zim_Tarantool_ping’:
/usr/src/tarantool-php/src/tarantool.c:38:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
tarantool_object *t
##NAME = (tarantool_object *)
^
/usr/src/tarantool-php/src/tarantool.c:1295:2: note: in expansion of macro ‘TARANTOOL_FETCH_OBJECT’
TARANTOOL_FETCH_OBJECT(obj, id);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:1307:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&header);
^~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:1308:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&body);
^~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c: In function ‘zim_Tarantool_select’:
/usr/src/tarantool-php/src/tarantool.c:38:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
tarantool_object *t
##NAME = (tarantool_object *)
^
/usr/src/tarantool-php/src/tarantool.c:1320:2: note: in expansion of macro ‘TARANTOOL_FETCH_OBJECT’
TARANTOOL_FETCH_OBJECT(obj, id);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:1353:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&key_new);
^~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct *}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:54:6: error: too many arguments to function ‘zend_hash_index_find’
if (zend_hash_index_find(ht
## HT, TNT_DATA,
^
/usr/src/tarantool-php/src/tarantool.c:1361:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:163:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
^~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:55:22: warning: comparison between pointer and integer
(void **)&answer) == FAILURE || !answer) {
^
/usr/src/tarantool-php/src/tarantool.c:1361:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:57:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&HEAD);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1361:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:58:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&BODY);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1361:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:62:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&HEAD);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1361:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:63:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&BODY);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1361:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct }’ but argument is of type ‘zval ** {aka struct zval_struct **}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c: In function ‘zim_Tarantool_insert’:
/usr/src/tarantool-php/src/tarantool.c:38:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
tarantool_object *t
##NAME = (tarantool_object *)
^
/usr/src/tarantool-php/src/tarantool.c:1368:2: note: in expansion of macro ‘TARANTOOL_FETCH_OBJECT’
TARANTOOL_FETCH_OBJECT(obj, id);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:54:6: error: too many arguments to function ‘zend_hash_index_find’
if (zend_hash_index_find(ht
## HT, TNT_DATA,
^
/usr/src/tarantool-php/src/tarantool.c:1385:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:163:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
^~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:55:22: warning: comparison between pointer and integer
(void **)&answer) == FAILURE || !answer) {
^
/usr/src/tarantool-php/src/tarantool.c:1385:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:57:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&HEAD);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1385:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:58:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&BODY);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1385:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:62:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&HEAD);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1385:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:63:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&BODY);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1385:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct }’ but argument is of type ‘zval ** {aka struct zval_struct **}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c: In function ‘zim_Tarantool_replace’:
/usr/src/tarantool-php/src/tarantool.c:38:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
tarantool_object *t
##NAME = (tarantool_object *)
^
/usr/src/tarantool-php/src/tarantool.c:1392:2: note: in expansion of macro ‘TARANTOOL_FETCH_OBJECT’
TARANTOOL_FETCH_OBJECT(obj, id);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:54:6: error: too many arguments to function ‘zend_hash_index_find’
if (zend_hash_index_find(ht
## HT, TNT_DATA,
^
/usr/src/tarantool-php/src/tarantool.c:1409:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:163:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
^~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:55:22: warning: comparison between pointer and integer
(void **)&answer) == FAILURE || !answer) {
^
/usr/src/tarantool-php/src/tarantool.c:1409:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:57:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&HEAD);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1409:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:58:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&BODY);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1409:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:62:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&HEAD);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1409:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:63:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&BODY);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1409:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c: In function ‘zim_Tarantool_delete’:
/usr/src/tarantool-php/src/tarantool.c:38:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
tarantool_object *t
##NAME = (tarantool_object *)
^
/usr/src/tarantool-php/src/tarantool.c:1417:2: note: in expansion of macro ‘TARANTOOL_FETCH_OBJECT’
TARANTOOL_FETCH_OBJECT(obj, id);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:1433:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&key_new);
^~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct *}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:54:6: error: too many arguments to function ‘zend_hash_index_find’
if (zend_hash_index_find(ht
## HT, TNT_DATA,
^
/usr/src/tarantool-php/src/tarantool.c:1442:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:163:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
^~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:55:22: warning: comparison between pointer and integer
(void **)&answer) == FAILURE || !answer) {
^
/usr/src/tarantool-php/src/tarantool.c:1442:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:57:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&HEAD);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1442:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:58:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&BODY);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1442:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:62:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&HEAD);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1442:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:63:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&BODY);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1442:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c: In function ‘zim_Tarantool_call’:
/usr/src/tarantool-php/src/tarantool.c:38:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
tarantool_object *t
##NAME = (tarantool_object *)
^
/usr/src/tarantool-php/src/tarantool.c:1450:2: note: in expansion of macro ‘TARANTOOL_FETCH_OBJECT’
TARANTOOL_FETCH_OBJECT(obj, id);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:1458:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&tuple_new);
^~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct *}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:54:6: error: too many arguments to function ‘zend_hash_index_find’
if (zend_hash_index_find(ht
## HT, TNT_DATA,
^
/usr/src/tarantool-php/src/tarantool.c:1467:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:163:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
^~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:55:22: warning: comparison between pointer and integer
(void **)&answer) == FAILURE || !answer) {
^
/usr/src/tarantool-php/src/tarantool.c:1467:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:57:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&HEAD);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1467:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:58:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&BODY);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1467:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:62:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&HEAD);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1467:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:63:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&BODY);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1467:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c: In function ‘zim_Tarantool_eval’:
/usr/src/tarantool-php/src/tarantool.c:38:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
tarantool_object *t
##NAME = (tarantool_object *)
^
/usr/src/tarantool-php/src/tarantool.c:1475:2: note: in expansion of macro ‘TARANTOOL_FETCH_OBJECT’
TARANTOOL_FETCH_OBJECT(obj, id);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:1483:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&tuple_new);
^~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct *}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:54:6: error: too many arguments to function ‘zend_hash_index_find’
if (zend_hash_index_find(ht
## HT, TNT_DATA,
^
/usr/src/tarantool-php/src/tarantool.c:1492:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:163:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
^~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:55:22: warning: comparison between pointer and integer
(void **)&answer) == FAILURE || !answer) {
^
/usr/src/tarantool-php/src/tarantool.c:1492:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:57:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&HEAD);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1492:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:58:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&BODY);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1492:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:62:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&HEAD);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1492:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:63:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&BODY);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1492:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c: In function ‘zim_Tarantool_update’:
/usr/src/tarantool-php/src/tarantool.c:38:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
tarantool_object *t
##NAME = (tarantool_object *)
^
/usr/src/tarantool-php/src/tarantool.c:1500:2: note: in expansion of macro ‘TARANTOOL_FETCH_OBJECT’
TARANTOOL_FETCH_OBJECT(obj, id);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:1517:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&key_new);
^~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct *}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:54:6: error: too many arguments to function ‘zend_hash_index_find’
if (zend_hash_index_find(ht
## HT, TNT_DATA,
^
/usr/src/tarantool-php/src/tarantool.c:1526:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:163:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
^~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:55:22: warning: comparison between pointer and integer
(void **)&answer) == FAILURE || !answer) {
^
/usr/src/tarantool-php/src/tarantool.c:1526:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:57:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&HEAD);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1526:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:58:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&BODY);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1526:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:62:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&HEAD);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1526:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:63:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&BODY);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1526:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct }’ but argument is of type ‘zval ** {aka struct zval_struct **}’
ZEND_API void zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c: In function ‘zim_Tarantool_upsert’:
/usr/src/tarantool-php/src/tarantool.c:38:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
tarantool_object *t
##NAME = (tarantool_object *)
^
/usr/src/tarantool-php/src/tarantool.c:1533:2: note: in expansion of macro ‘TARANTOOL_FETCH_OBJECT’
TARANTOOL_FETCH_OBJECT(obj, id);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:54:6: error: too many arguments to function ‘zend_hash_index_find’
if (zend_hash_index_find(ht
## HT, TNT_DATA,
^
/usr/src/tarantool-php/src/tarantool.c:1550:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_hash.h:163:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
^~~~~~~~~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:55:22: warning: comparison between pointer and integer
(void **)&answer) == FAILURE || !answer) {
^
/usr/src/tarantool-php/src/tarantool.c:1550:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
from /usr/include/php/20160303/main/php.h:36,
from /usr/src/tarantool-php/src/php_tarantool.h:4,
from /usr/src/tarantool-php/src/tarantool.c:5:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:57:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&HEAD);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1550:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:58:3: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&BODY);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1550:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:62:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&HEAD);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1550:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/usr/src/tarantool-php/src/tarantool.c:63:2: note: in expansion of macro ‘zval_ptr_dtor’
zval_ptr_dtor(&BODY);
^~~~~~~~~~~~~
/usr/src/tarantool-php/src/tarantool.c:1550:2: note: in expansion of macro ‘TARANTOOL_RETURN_DATA’
TARANTOOL_RETURN_DATA(body, header, body);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
^~~~~~~~~~~~~~
Makefile:180: recipe for target 'src/tarantool.lo' failed
make: *** [src/tarantool.lo] Error 1