Created
July 20, 2016 03:20
-
-
Save willgrnr/9376bd141506845d16935df1a4c44aa9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/bin/sh /home/will/php-protobuf/libtool --mode=compile cc -I. -I/home/will/php-protobuf -DPHP_ATOM_INC -I/home/will/php-protobuf/include -I/home/will/php-protobuf/main -I/home/will/php-protobuf -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/will/php-protobuf/protobuf.c -o protobuf.lo | |
libtool: compile: cc -I. -I/home/will/php-protobuf -DPHP_ATOM_INC -I/home/will/php-protobuf/include -I/home/will/php-protobuf/main -I/home/will/php-protobuf -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/will/php-protobuf/protobuf.c -fPIC -DPIC -o .libs/protobuf.o | |
/home/will/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage___construct’: | |
/home/will/php-protobuf/protobuf.c:84:2: warning: implicit declaration of function ‘ALLOC_INIT_ZVAL’ [-Wimplicit-function-declaration] | |
ALLOC_INIT_ZVAL(values); | |
^ | |
In file included from /usr/include/php/20151012/main/php.h:40:0, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/home/will/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_append’: | |
/home/will/php-protobuf/protobuf.c:45:35: error: ‘this_ptr’ undeclared (first use in this function) | |
#define RETURN_THIS() RETURN_ZVAL(this_ptr, 1, 0); | |
^ | |
/usr/include/php/20151012/Zend/zend_API.h:595:17: note: in definition of macro ‘ZVAL_ZVAL’ | |
zval *__zv = (zv); \ | |
^ | |
/usr/include/php/20151012/Zend/zend_API.h:642:40: note: in expansion of macro ‘RETVAL_ZVAL’ | |
#define RETURN_ZVAL(zv, copy, dtor) { RETVAL_ZVAL(zv, copy, dtor); return; } | |
^ | |
/home/will/php-protobuf/protobuf.c:45:23: note: in expansion of macro ‘RETURN_ZVAL’ | |
#define RETURN_THIS() RETURN_ZVAL(this_ptr, 1, 0); | |
^ | |
/home/will/php-protobuf/protobuf.c:96:3: note: in expansion of macro ‘RETURN_THIS’ | |
RETURN_THIS(); | |
^ | |
/home/will/php-protobuf/protobuf.c:45:35: note: each undeclared identifier is reported only once for each function it appears in | |
#define RETURN_THIS() RETURN_ZVAL(this_ptr, 1, 0); | |
^ | |
/usr/include/php/20151012/Zend/zend_API.h:595:17: note: in definition of macro ‘ZVAL_ZVAL’ | |
zval *__zv = (zv); \ | |
^ | |
/usr/include/php/20151012/Zend/zend_API.h:642:40: note: in expansion of macro ‘RETVAL_ZVAL’ | |
#define RETURN_ZVAL(zv, copy, dtor) { RETVAL_ZVAL(zv, copy, dtor); return; } | |
^ | |
/home/will/php-protobuf/protobuf.c:45:23: note: in expansion of macro ‘RETURN_ZVAL’ | |
#define RETURN_THIS() RETURN_ZVAL(this_ptr, 1, 0); | |
^ | |
/home/will/php-protobuf/protobuf.c:96:3: note: in expansion of macro ‘RETURN_THIS’ | |
RETURN_THIS(); | |
^ | |
/home/will/php-protobuf/protobuf.c:108:2: warning: implicit declaration of function ‘MAKE_STD_ZVAL’ [-Wimplicit-function-declaration] | |
MAKE_STD_ZVAL(val); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:39:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_variables.h:122: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) | |
^ | |
/home/will/php-protobuf/protobuf.c:110:3: note: in expansion of macro ‘zval_ptr_dtor’ | |
zval_ptr_dtor(&val); | |
^ | |
/usr/include/php/20151012/Zend/zend_variables.h:112: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); | |
^ | |
In file included from /usr/include/php/20151012/main/php.h:40:0, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/home/will/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_clear’: | |
/home/will/php-protobuf/protobuf.c:45:35: error: ‘this_ptr’ undeclared (first use in this function) | |
#define RETURN_THIS() RETURN_ZVAL(this_ptr, 1, 0); | |
^ | |
/usr/include/php/20151012/Zend/zend_API.h:595:17: note: in definition of macro ‘ZVAL_ZVAL’ | |
zval *__zv = (zv); \ | |
^ | |
/usr/include/php/20151012/Zend/zend_API.h:642:40: note: in expansion of macro ‘RETVAL_ZVAL’ | |
#define RETURN_ZVAL(zv, copy, dtor) { RETVAL_ZVAL(zv, copy, dtor); return; } | |
^ | |
/home/will/php-protobuf/protobuf.c:45:23: note: in expansion of macro ‘RETURN_ZVAL’ | |
#define RETURN_THIS() RETURN_ZVAL(this_ptr, 1, 0); | |
^ | |
/home/will/php-protobuf/protobuf.c:128:3: note: in expansion of macro ‘RETURN_THIS’ | |
RETURN_THIS(); | |
^ | |
/home/will/php-protobuf/protobuf.c:133:6: warning: implicit declaration of function ‘Z_TYPE_PP’ [-Wimplicit-function-declaration] | |
if (Z_TYPE_PP(array) != IS_ARRAY) { | |
^ | |
/home/will/php-protobuf/protobuf.c:139:18: warning: implicit declaration of function ‘Z_ARRVAL_PP’ [-Wimplicit-function-declaration] | |
zend_hash_clean(Z_ARRVAL_PP(array)); | |
^ | |
/home/will/php-protobuf/protobuf.c:139:18: warning: passing argument 1 of ‘zend_hash_clean’ makes pointer from integer without a cast [-Wint-conversion] | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:60:29: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API void ZEND_FASTCALL zend_hash_clean(HashTable *ht); | |
^ | |
In file included from /home/will/php-protobuf/protobuf.c:6:0: | |
/home/will/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_printDebugString’: | |
/home/will/php-protobuf/protobuf.h:7:43: warning: passing argument 1 of ‘zend_hash_internal_pointer_reset_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
for (zend_hash_internal_pointer_reset_ex((hash), (iter)); zend_hash_has_more_elements_ex((hash), (iter)) == SUCCESS; zend_hash_move_forward_ex( | |
^ | |
/home/will/php-protobuf/protobuf.c:166:2: note: in expansion of macro ‘PB_FOREACH’ | |
PB_FOREACH(&i, Z_ARRVAL_PP(values)) { | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:172:30: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API void ZEND_FASTCALL zend_hash_internal_pointer_reset_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.h:7:91: warning: passing argument 1 of ‘zend_hash_get_current_key_type_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
for (zend_hash_internal_pointer_reset_ex((hash), (iter)); zend_hash_has_more_elements_ex((hash), (iter)) == SUCCESS; zend_hash_move_forward_ex( | |
^ | |
/usr/include/php/20151012/Zend/zend_hash.h:165:37: note: in definition of macro ‘zend_hash_has_more_elements_ex’ | |
(zend_hash_get_current_key_type_ex(ht, pos) == HASH_KEY_NON_EXISTENT ? FAILURE : SUCCESS) | |
^ | |
/home/will/php-protobuf/protobuf.c:166:2: note: in expansion of macro ‘PB_FOREACH’ | |
PB_FOREACH(&i, Z_ARRVAL_PP(values)) { | |
^ | |
/usr/include/php/20151012/Zend/zend_hash.h:170:30: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_type_ex(HashTable *ht, HashPosition *pos); | |
^ | |
In file included from /home/will/php-protobuf/protobuf.c:6:0: | |
/home/will/php-protobuf/protobuf.h:7:145: warning: passing argument 1 of ‘zend_hash_move_forward_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
hash_internal_pointer_reset_ex((hash), (iter)); zend_hash_has_more_elements_ex((hash), (iter)) == SUCCESS; zend_hash_move_forward_ex((hash), (it | |
^ | |
/home/will/php-protobuf/protobuf.c:166:2: note: in expansion of macro ‘PB_FOREACH’ | |
PB_FOREACH(&i, Z_ARRVAL_PP(values)) { | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:166:30: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API int ZEND_FASTCALL zend_hash_move_forward_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.c:167:32: warning: passing argument 1 of ‘zend_hash_get_current_key_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
zend_hash_get_current_key_ex(Z_ARRVAL_PP(values), NULL, NULL, &field_number, 0, &i); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:168:30: note: expected ‘const HashTable * {aka const struct _zend_array *}’ 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 | |
^ | |
/home/will/php-protobuf/protobuf.c:167:65: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type [-Wincompatible-pointer-types] | |
zend_hash_get_current_key_ex(Z_ARRVAL_PP(values), NULL, NULL, &field_number, 0, &i); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:168:30: note: expected ‘HashPosition * {aka unsigned int *}’ but argument is of type ‘ulong * {aka long unsigned 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 | |
^ | |
/home/will/php-protobuf/protobuf.c:167:3: error: too many arguments to function ‘zend_hash_get_current_key_ex’ | |
zend_hash_get_current_key_ex(Z_ARRVAL_PP(values), NULL, NULL, &field_number, 0, &i); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/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 | |
^ | |
/home/will/php-protobuf/protobuf.c:168:33: warning: passing argument 1 of ‘zend_hash_get_current_data_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
zend_hash_get_current_data_ex(Z_ARRVAL_PP(values), (void **) &value, &i); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:171:30: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.c:168:54: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type [-Wincompatible-pointer-types] | |
zend_hash_get_current_data_ex(Z_ARRVAL_PP(values), (void **) &value, &i); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:171:30: note: expected ‘HashPosition * {aka unsigned int *}’ but argument is of type ‘void **’ | |
ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.c:168:3: error: too many arguments to function ‘zend_hash_get_current_data_ex’ | |
zend_hash_get_current_data_ex(Z_ARRVAL_PP(values), (void **) &value, &i); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/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); | |
^ | |
/usr/include/php/20151012/Zend/zend_hash.h:212:6: error: invalid type argument of ‘->’ (have ‘int’) | |
(ht)->nNumOfElements | |
^ | |
/home/will/php-protobuf/protobuf.c:177:8: note: in expansion of macro ‘zend_hash_num_elements’ | |
if (zend_hash_num_elements(Z_ARRVAL_PP(value)) == 0) | |
^ | |
/home/will/php-protobuf/protobuf.c:184:32: warning: implicit declaration of function ‘Z_LVAL_PP’ [-Wimplicit-function-declaration] | |
int wire = pb_get_wire_type(Z_LVAL_PP(field_type)); | |
^ | |
In file included from /home/will/php-protobuf/protobuf.c:6:0: | |
/home/will/php-protobuf/protobuf.h:7:43: warning: passing argument 1 of ‘zend_hash_internal_pointer_reset_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
for (zend_hash_internal_pointer_reset_ex((hash), (iter)); zend_hash_has_more_elements_ex((hash), (iter)) == SUCCESS; zend_hash_move_forward_ex( | |
^ | |
/home/will/php-protobuf/protobuf.c:186:4: note: in expansion of macro ‘PB_FOREACH’ | |
PB_FOREACH(&j, Z_ARRVAL_PP(value)) { | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:172:30: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API void ZEND_FASTCALL zend_hash_internal_pointer_reset_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.h:7:91: warning: passing argument 1 of ‘zend_hash_get_current_key_type_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
for (zend_hash_internal_pointer_reset_ex((hash), (iter)); zend_hash_has_more_elements_ex((hash), (iter)) == SUCCESS; zend_hash_move_forward_ex( | |
^ | |
/usr/include/php/20151012/Zend/zend_hash.h:165:37: note: in definition of macro ‘zend_hash_has_more_elements_ex’ | |
(zend_hash_get_current_key_type_ex(ht, pos) == HASH_KEY_NON_EXISTENT ? FAILURE : SUCCESS) | |
^ | |
/home/will/php-protobuf/protobuf.c:186:4: note: in expansion of macro ‘PB_FOREACH’ | |
PB_FOREACH(&j, Z_ARRVAL_PP(value)) { | |
^ | |
/usr/include/php/20151012/Zend/zend_hash.h:170:30: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_type_ex(HashTable *ht, HashPosition *pos); | |
^ | |
In file included from /home/will/php-protobuf/protobuf.c:6:0: | |
/home/will/php-protobuf/protobuf.h:7:145: warning: passing argument 1 of ‘zend_hash_move_forward_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
hash_internal_pointer_reset_ex((hash), (iter)); zend_hash_has_more_elements_ex((hash), (iter)) == SUCCESS; zend_hash_move_forward_ex((hash), (it | |
^ | |
/home/will/php-protobuf/protobuf.c:186:4: note: in expansion of macro ‘PB_FOREACH’ | |
PB_FOREACH(&j, Z_ARRVAL_PP(value)) { | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:166:30: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API int ZEND_FASTCALL zend_hash_move_forward_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.c:187:34: warning: passing argument 1 of ‘zend_hash_get_current_key_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
zend_hash_get_current_key_ex(Z_ARRVAL_PP(value), NULL, NULL, &index, 0, &j); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:168:30: note: expected ‘const HashTable * {aka const struct _zend_array *}’ 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 | |
^ | |
/home/will/php-protobuf/protobuf.c:187:66: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type [-Wincompatible-pointer-types] | |
zend_hash_get_current_key_ex(Z_ARRVAL_PP(value), NULL, NULL, &index, 0, &j); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:168:30: note: expected ‘HashPosition * {aka unsigned int *}’ but argument is of type ‘ulong * {aka long unsigned 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 | |
^ | |
/home/will/php-protobuf/protobuf.c:187:5: error: too many arguments to function ‘zend_hash_get_current_key_ex’ | |
zend_hash_get_current_key_ex(Z_ARRVAL_PP(value), NULL, NULL, &index, 0, &j); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/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 | |
^ | |
/home/will/php-protobuf/protobuf.c:188:35: warning: passing argument 1 of ‘zend_hash_get_current_data_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
zend_hash_get_current_data_ex(Z_ARRVAL_PP(value), (void **) &val, &j); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:171:30: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.c:188:55: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type [-Wincompatible-pointer-types] | |
zend_hash_get_current_data_ex(Z_ARRVAL_PP(value), (void **) &val, &j); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:171:30: note: expected ‘HashPosition * {aka unsigned int *}’ but argument is of type ‘void **’ | |
ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.c:188:5: error: too many arguments to function ‘zend_hash_get_current_data_ex’ | |
zend_hash_get_current_data_ex(Z_ARRVAL_PP(value), (void **) &val, &j); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/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); | |
^ | |
In file included from /home/will/php-protobuf/protobuf.c:6:0: | |
/home/will/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_dump’: | |
/home/will/php-protobuf/protobuf.h:7:43: warning: passing argument 1 of ‘zend_hash_internal_pointer_reset_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
for (zend_hash_internal_pointer_reset_ex((hash), (iter)); zend_hash_has_more_elements_ex((hash), (iter)) == SUCCESS; zend_hash_move_forward_ex( | |
^ | |
/home/will/php-protobuf/protobuf.c:241:2: note: in expansion of macro ‘PB_FOREACH’ | |
PB_FOREACH(&i, Z_ARRVAL_PP(values)) { | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:172:30: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API void ZEND_FASTCALL zend_hash_internal_pointer_reset_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.h:7:91: warning: passing argument 1 of ‘zend_hash_get_current_key_type_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
for (zend_hash_internal_pointer_reset_ex((hash), (iter)); zend_hash_has_more_elements_ex((hash), (iter)) == SUCCESS; zend_hash_move_forward_ex( | |
^ | |
/usr/include/php/20151012/Zend/zend_hash.h:165:37: note: in definition of macro ‘zend_hash_has_more_elements_ex’ | |
(zend_hash_get_current_key_type_ex(ht, pos) == HASH_KEY_NON_EXISTENT ? FAILURE : SUCCESS) | |
^ | |
/home/will/php-protobuf/protobuf.c:241:2: note: in expansion of macro ‘PB_FOREACH’ | |
PB_FOREACH(&i, Z_ARRVAL_PP(values)) { | |
^ | |
/usr/include/php/20151012/Zend/zend_hash.h:170:30: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_type_ex(HashTable *ht, HashPosition *pos); | |
^ | |
In file included from /home/will/php-protobuf/protobuf.c:6:0: | |
/home/will/php-protobuf/protobuf.h:7:145: warning: passing argument 1 of ‘zend_hash_move_forward_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
hash_internal_pointer_reset_ex((hash), (iter)); zend_hash_has_more_elements_ex((hash), (iter)) == SUCCESS; zend_hash_move_forward_ex((hash), (it | |
^ | |
/home/will/php-protobuf/protobuf.c:241:2: note: in expansion of macro ‘PB_FOREACH’ | |
PB_FOREACH(&i, Z_ARRVAL_PP(values)) { | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:166:30: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API int ZEND_FASTCALL zend_hash_move_forward_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.c:242:32: warning: passing argument 1 of ‘zend_hash_get_current_key_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
zend_hash_get_current_key_ex(Z_ARRVAL_PP(values), NULL, NULL, &field_number, 0, &i); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:168:30: note: expected ‘const HashTable * {aka const struct _zend_array *}’ 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 | |
^ | |
/home/will/php-protobuf/protobuf.c:242:65: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type [-Wincompatible-pointer-types] | |
zend_hash_get_current_key_ex(Z_ARRVAL_PP(values), NULL, NULL, &field_number, 0, &i); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:168:30: note: expected ‘HashPosition * {aka unsigned int *}’ but argument is of type ‘ulong * {aka long unsigned 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 | |
^ | |
/home/will/php-protobuf/protobuf.c:242:3: error: too many arguments to function ‘zend_hash_get_current_key_ex’ | |
zend_hash_get_current_key_ex(Z_ARRVAL_PP(values), NULL, NULL, &field_number, 0, &i); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/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 | |
^ | |
/home/will/php-protobuf/protobuf.c:243:33: warning: passing argument 1 of ‘zend_hash_get_current_data_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
zend_hash_get_current_data_ex(Z_ARRVAL_PP(values), (void **) &value, &i); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:171:30: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.c:243:54: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type [-Wincompatible-pointer-types] | |
zend_hash_get_current_data_ex(Z_ARRVAL_PP(values), (void **) &value, &i); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:171:30: note: expected ‘HashPosition * {aka unsigned int *}’ but argument is of type ‘void **’ | |
ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.c:243:3: error: too many arguments to function ‘zend_hash_get_current_data_ex’ | |
zend_hash_get_current_data_ex(Z_ARRVAL_PP(values), (void **) &value, &i); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/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); | |
^ | |
/usr/include/php/20151012/Zend/zend_hash.h:212:6: error: invalid type argument of ‘->’ (have ‘int’) | |
(ht)->nNumOfElements | |
^ | |
/home/will/php-protobuf/protobuf.c:252:8: note: in expansion of macro ‘zend_hash_num_elements’ | |
if (zend_hash_num_elements(Z_ARRVAL_PP(value)) > 0 || !only_set) { | |
^ | |
/usr/include/php/20151012/Zend/zend_hash.h:212:6: error: invalid type argument of ‘->’ (have ‘int’) | |
(ht)->nNumOfElements | |
^ | |
/home/will/php-protobuf/protobuf.c:253:94: note: in expansion of macro ‘zend_hash_num_elements’ | |
php_printf("%*c%lu: %s(%d) => \n", ((int) level + 1) * 2, ' ', field_number, field_name, zend_hash_num_elements(Z_ARRVAL_PP(value))); | |
^ | |
/usr/include/php/20151012/Zend/zend_hash.h:212:6: error: invalid type argument of ‘->’ (have ‘int’) | |
(ht)->nNumOfElements | |
^ | |
/home/will/php-protobuf/protobuf.c:255:9: note: in expansion of macro ‘zend_hash_num_elements’ | |
if (zend_hash_num_elements(Z_ARRVAL_PP(value)) > 0) { | |
^ | |
In file included from /home/will/php-protobuf/protobuf.c:6:0: | |
/home/will/php-protobuf/protobuf.h:7:43: warning: passing argument 1 of ‘zend_hash_internal_pointer_reset_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
for (zend_hash_internal_pointer_reset_ex((hash), (iter)); zend_hash_has_more_elements_ex((hash), (iter)) == SUCCESS; zend_hash_move_forward_ex( | |
^ | |
/home/will/php-protobuf/protobuf.c:256:6: note: in expansion of macro ‘PB_FOREACH’ | |
PB_FOREACH(&j, Z_ARRVAL_PP(value)) { | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:172:30: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API void ZEND_FASTCALL zend_hash_internal_pointer_reset_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.h:7:91: warning: passing argument 1 of ‘zend_hash_get_current_key_type_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
for (zend_hash_internal_pointer_reset_ex((hash), (iter)); zend_hash_has_more_elements_ex((hash), (iter)) == SUCCESS; zend_hash_move_forward_ex( | |
^ | |
/usr/include/php/20151012/Zend/zend_hash.h:165:37: note: in definition of macro ‘zend_hash_has_more_elements_ex’ | |
(zend_hash_get_current_key_type_ex(ht, pos) == HASH_KEY_NON_EXISTENT ? FAILURE : SUCCESS) | |
^ | |
/home/will/php-protobuf/protobuf.c:256:6: note: in expansion of macro ‘PB_FOREACH’ | |
PB_FOREACH(&j, Z_ARRVAL_PP(value)) { | |
^ | |
/usr/include/php/20151012/Zend/zend_hash.h:170:30: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_type_ex(HashTable *ht, HashPosition *pos); | |
^ | |
In file included from /home/will/php-protobuf/protobuf.c:6:0: | |
/home/will/php-protobuf/protobuf.h:7:145: warning: passing argument 1 of ‘zend_hash_move_forward_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
hash_internal_pointer_reset_ex((hash), (iter)); zend_hash_has_more_elements_ex((hash), (iter)) == SUCCESS; zend_hash_move_forward_ex((hash), (it | |
^ | |
/home/will/php-protobuf/protobuf.c:256:6: note: in expansion of macro ‘PB_FOREACH’ | |
PB_FOREACH(&j, Z_ARRVAL_PP(value)) { | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:166:30: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API int ZEND_FASTCALL zend_hash_move_forward_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.c:257:36: warning: passing argument 1 of ‘zend_hash_get_current_key_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
zend_hash_get_current_key_ex(Z_ARRVAL_PP(value), NULL, NULL, &index, 0, &j); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:168:30: note: expected ‘const HashTable * {aka const struct _zend_array *}’ 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 | |
^ | |
/home/will/php-protobuf/protobuf.c:257:68: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type [-Wincompatible-pointer-types] | |
zend_hash_get_current_key_ex(Z_ARRVAL_PP(value), NULL, NULL, &index, 0, &j); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:168:30: note: expected ‘HashPosition * {aka unsigned int *}’ but argument is of type ‘ulong * {aka long unsigned 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 | |
^ | |
/home/will/php-protobuf/protobuf.c:257:7: error: too many arguments to function ‘zend_hash_get_current_key_ex’ | |
zend_hash_get_current_key_ex(Z_ARRVAL_PP(value), NULL, NULL, &index, 0, &j); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/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 | |
^ | |
/home/will/php-protobuf/protobuf.c:258:37: warning: passing argument 1 of ‘zend_hash_get_current_data_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
zend_hash_get_current_data_ex(Z_ARRVAL_PP(value), (void **) &val, &j); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:171:30: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.c:258:57: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type [-Wincompatible-pointer-types] | |
zend_hash_get_current_data_ex(Z_ARRVAL_PP(value), (void **) &val, &j); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:171:30: note: expected ‘HashPosition * {aka unsigned int *}’ but argument is of type ‘void **’ | |
ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.c:258:7: error: too many arguments to function ‘zend_hash_get_current_data_ex’ | |
zend_hash_get_current_data_ex(Z_ARRVAL_PP(value), (void **) &val, &j); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/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); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:31:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/home/will/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_count’: | |
/usr/include/php/20151012/Zend/zend_hash.h:212:6: error: invalid type argument of ‘->’ (have ‘int’) | |
(ht)->nNumOfElements | |
^ | |
/usr/include/php/20151012/Zend/zend_types.h:610:19: note: in definition of macro ‘ZVAL_LONG’ | |
Z_LVAL_P(__z) = l; \ | |
^ | |
/usr/include/php/20151012/Zend/zend_API.h:630:31: note: in expansion of macro ‘RETVAL_LONG’ | |
#define RETURN_LONG(l) { RETVAL_LONG(l); return; } | |
^ | |
/home/will/php-protobuf/protobuf.c:298:3: note: in expansion of macro ‘RETURN_LONG’ | |
RETURN_LONG(zend_hash_num_elements(Z_ARRVAL_PP(value))); | |
^ | |
/home/will/php-protobuf/protobuf.c:298:15: note: in expansion of macro ‘zend_hash_num_elements’ | |
RETURN_LONG(zend_hash_num_elements(Z_ARRVAL_PP(value))); | |
^ | |
/home/will/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_get’: | |
/home/will/php-protobuf/protobuf.c:326:28: warning: passing argument 1 of ‘zend_hash_index_find’ makes pointer from integer without a cast [-Wint-conversion] | |
if (zend_hash_index_find(Z_ARRVAL_PP(value), index, (void **) &val) == FAILURE) | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:156:30: note: expected ‘const HashTable * {aka const struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); | |
^ | |
/home/will/php-protobuf/protobuf.c:326:7: error: too many arguments to function ‘zend_hash_index_find’ | |
if (zend_hash_index_find(Z_ARRVAL_PP(value), index, (void **) &val) == FAILURE) | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:156:30: note: declared here | |
ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); | |
^ | |
/home/will/php-protobuf/protobuf.c:326:71: warning: comparison between pointer and integer | |
if (zend_hash_index_find(Z_ARRVAL_PP(value), index, (void **) &val) == FAILURE) | |
^ | |
/home/will/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_parseFromString’: | |
/home/will/php-protobuf/protobuf.c:348:2: warning: implicit declaration of function ‘INIT_ZVAL’ [-Wimplicit-function-declaration] | |
INIT_ZVAL(name); | |
^ | |
/home/will/php-protobuf/protobuf.c:349:69: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3 | |
ZVAL_STRINGL(&name, PB_RESET_METHOD, sizeof(PB_RESET_METHOD) - 1, 0); | |
^ | |
/home/will/php-protobuf/protobuf.c:349:2: error: ‘ZVAL_STRINGL’ undeclared (first use in this function) | |
ZVAL_STRINGL(&name, PB_RESET_METHOD, sizeof(PB_RESET_METHOD) - 1, 0); | |
^ | |
/home/will/php-protobuf/protobuf.c:351:31: error: lvalue required as unary ‘&’ operand | |
if (call_user_function(NULL, &getThis(), &name, &zret, 0, NULL TSRMLS_CC) == FAILURE) | |
^ | |
/home/will/php-protobuf/protobuf.c:365:7: error: too many arguments to function ‘zend_hash_index_find’ | |
if (zend_hash_index_find(Z_ARRVAL_P(field_descriptors), field_number, (void **) &field_descriptor) == FAILURE) { | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:156:30: note: declared here | |
ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); | |
^ | |
/home/will/php-protobuf/protobuf.c:365:102: warning: comparison between pointer and integer | |
if (zend_hash_index_find(Z_ARRVAL_P(field_descriptors), field_number, (void **) &field_descriptor) == FAILURE) { | |
^ | |
/home/will/php-protobuf/protobuf.c:416:29: warning: implicit declaration of function ‘Z_STRVAL_PP’ [-Wimplicit-function-declaration] | |
if (zend_lookup_class_ex(Z_STRVAL_PP(field_type), Z_STRLEN_PP(field_type), NULL, 1, &sub_ce TSRMLS_CC) == FAILURE) | |
^ | |
/home/will/php-protobuf/protobuf.c:416:54: warning: implicit declaration of function ‘Z_STRLEN_PP’ [-Wimplicit-function-declaration] | |
if (zend_lookup_class_ex(Z_STRVAL_PP(field_type), Z_STRLEN_PP(field_type), NULL, 1, &sub_ce TSRMLS_CC) == FAILURE) | |
^ | |
/home/will/php-protobuf/protobuf.c:416:29: warning: passing argument 1 of ‘zend_lookup_class_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
if (zend_lookup_class_ex(Z_STRVAL_PP(field_type), Z_STRLEN_PP(field_type), NULL, 1, &sub_ce TSRMLS_CC) == FAILURE) | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend_API.h:31:0, | |
from /usr/include/php/20151012/main/php.h:40, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_execute.h:45:28: note: expected ‘zend_string * {aka struct _zend_string *}’ but argument is of type ‘int’ | |
ZEND_API zend_class_entry *zend_lookup_class_ex(zend_string *name, const zval *key, int use_autoload); | |
^ | |
/home/will/php-protobuf/protobuf.c:416:54: warning: passing argument 2 of ‘zend_lookup_class_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
if (zend_lookup_class_ex(Z_STRVAL_PP(field_type), Z_STRLEN_PP(field_type), NULL, 1, &sub_ce TSRMLS_CC) == FAILURE) | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend_API.h:31:0, | |
from /usr/include/php/20151012/main/php.h:40, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_execute.h:45:28: note: expected ‘const zval * {aka const struct _zval_struct *}’ but argument is of type ‘in ’ | |
ZEND_API zend_class_entry *zend_lookup_class_ex(zend_string *name, const zval *key, int use_autoload); | |
^ | |
/home/will/php-protobuf/protobuf.c:416:79: warning: passing argument 3 of ‘zend_lookup_class_ex’ makes integer from pointer without a cast [-Wint-conversion] | |
if (zend_lookup_class_ex(Z_STRVAL_PP(field_type), Z_STRLEN_PP(field_type), NULL, 1, &sub_ce TSRMLS_CC) == FAILURE) | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend_API.h:31:0, | |
from /usr/include/php/20151012/main/php.h:40, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_execute.h:45:28: note: expected ‘int’ but argument is of type ‘void *’ | |
ZEND_API zend_class_entry *zend_lookup_class_ex(zend_string *name, const zval *key, int use_autoload); | |
^ | |
/home/will/php-protobuf/protobuf.c:416:8: error: too many arguments to function ‘zend_lookup_class_ex’ | |
if (zend_lookup_class_ex(Z_STRVAL_PP(field_type), Z_STRLEN_PP(field_type), NULL, 1, &sub_ce TSRMLS_CC) == FAILURE) | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend_API.h:31:0, | |
from /usr/include/php/20151012/main/php.h:40, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_execute.h:45:28: note: declared here | |
ZEND_API zend_class_entry *zend_lookup_class_ex(zend_string *name, const zval *key, int use_autoload); | |
^ | |
/home/will/php-protobuf/protobuf.c:416:107: warning: comparison between pointer and integer | |
if (zend_lookup_class_ex(Z_STRVAL_PP(field_type), Z_STRLEN_PP(field_type), NULL, 1, &sub_ce TSRMLS_CC) == FAILURE) | |
^ | |
/home/will/php-protobuf/protobuf.c:429:94: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3 | |
ZVAL_STRINGL(&name, ZEND_CONSTRUCTOR_FUNC_NAME, sizeof(ZEND_CONSTRUCTOR_FUNC_NAME) - 1, 0); | |
^ | |
/home/will/php-protobuf/protobuf.c:431:34: warning: passing argument 2 of ‘call_user_function’ from incompatible pointer type [-Wincompatible-pointer-types] | |
if (call_user_function(NULL, &value, &name, &zret, 0, NULL TSRMLS_CC) == FAILURE) { | |
^ | |
In file included from /usr/include/php/20151012/main/php.h:40:0, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_API.h:471:14: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’ | |
ZEND_API int call_user_function(HashTable *function_table, zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval param | |
^ | |
/home/will/php-protobuf/protobuf.c:436:96: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3 | |
ZVAL_STRINGL(&name, PB_PARSE_FROM_STRING_METHOD, sizeof(PB_PARSE_FROM_STRING_METHOD) - 1, 0); | |
^ | |
/home/will/php-protobuf/protobuf.c:439:48: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3 | |
ZVAL_STRINGL(&arg, subpack, subpack_size, 0); | |
^ | |
/home/will/php-protobuf/protobuf.c:444:34: warning: passing argument 2 of ‘call_user_function’ from incompatible pointer type [-Wincompatible-pointer-types] | |
if (call_user_function(NULL, &value, &name, &zret, 1, &args TSRMLS_CC) == FAILURE) | |
^ | |
In file included from /usr/include/php/20151012/main/php.h:40:0, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_API.h:471:14: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’ | |
ZEND_API int call_user_function(HashTable *function_table, zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval param | |
^ | |
/home/will/php-protobuf/protobuf.c:444:59: warning: passing argument 6 of ‘call_user_function’ from incompatible pointer type [-Wincompatible-pointer-types] | |
if (call_user_function(NULL, &value, &name, &zret, 1, &args TSRMLS_CC) == FAILURE) | |
^ | |
In file included from /usr/include/php/20151012/main/php.h:40:0, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_API.h:471:14: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’ | |
ZEND_API int call_user_function(HashTable *function_table, zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval param | |
^ | |
/home/will/php-protobuf/protobuf.c:447:25: error: ‘IS_BOOL’ undeclared (first use in this function) | |
if (Z_TYPE(zret) != IS_BOOL) | |
^ | |
/home/will/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_serializeToString’: | |
/home/will/php-protobuf/protobuf.c:506:75: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type [-Wincompatible-pointer-types] | |
zend_hash_get_current_key_ex(Z_ARRVAL_P(field_descriptors), NULL, NULL, &field_number, 0, &i); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:168:30: note: expected ‘HashPosition * {aka unsigned int *}’ but argument is of type ‘ulong * {aka long unsigned 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 | |
^ | |
/home/will/php-protobuf/protobuf.c:506:3: error: too many arguments to function ‘zend_hash_get_current_key_ex’ | |
zend_hash_get_current_key_ex(Z_ARRVAL_P(field_descriptors), NULL, NULL, &field_number, 0, &i); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/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 | |
^ | |
/home/will/php-protobuf/protobuf.c:507:64: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type [-Wincompatible-pointer-types] | |
zend_hash_get_current_data_ex(Z_ARRVAL_P(field_descriptors), (void **) &field_descriptor, &i); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:171:30: note: expected ‘HashPosition * {aka unsigned int *}’ but argument is of type ‘void **’ | |
ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.c:507:3: error: too many arguments to function ‘zend_hash_get_current_data_ex’ | |
zend_hash_get_current_data_ex(Z_ARRVAL_P(field_descriptors), (void **) &field_descriptor, &i); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/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); | |
^ | |
/home/will/php-protobuf/protobuf.c:509:28: warning: passing argument 1 of ‘zend_hash_index_find’ makes pointer from integer without a cast [-Wint-conversion] | |
if (zend_hash_index_find(Z_ARRVAL_PP(values), field_number, (void **) &value) == FAILURE) { | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:156:30: note: expected ‘const HashTable * {aka const struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); | |
^ | |
/home/will/php-protobuf/protobuf.c:509:7: error: too many arguments to function ‘zend_hash_index_find’ | |
if (zend_hash_index_find(Z_ARRVAL_PP(values), field_number, (void **) &value) == FAILURE) { | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:156:30: note: declared here | |
ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); | |
^ | |
/home/will/php-protobuf/protobuf.c:509:81: warning: comparison between pointer and integer | |
if (zend_hash_index_find(Z_ARRVAL_PP(values), field_number, (void **) &value) == FAILURE) { | |
^ | |
/home/will/php-protobuf/protobuf.c:518:23: warning: passing argument 1 of ‘zend_hash_find’ makes pointer from integer without a cast [-Wint-conversion] | |
if (zend_hash_find(Z_ARRVAL_PP(field_descriptor), PB_FIELD_REQUIRED, sizeof(PB_FIELD_REQUIRED), (void **) &required) == FAILURE) { | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘const HashTable * {aka const struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); | |
^ | |
/home/will/php-protobuf/protobuf.c:41:27: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types] | |
#define PB_FIELD_REQUIRED "required" | |
^ | |
/home/will/php-protobuf/protobuf.c:518:54: note: in expansion of macro ‘PB_FIELD_REQUIRED’ | |
if (zend_hash_find(Z_ARRVAL_PP(field_descriptor), PB_FIELD_REQUIRED, sizeof(PB_FIELD_REQUIRED), (void **) &required) == FAILURE) { | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:154: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); | |
^ | |
/home/will/php-protobuf/protobuf.c:518:8: error: too many arguments to function ‘zend_hash_find’ | |
if (zend_hash_find(Z_ARRVAL_PP(field_descriptor), PB_FIELD_REQUIRED, sizeof(PB_FIELD_REQUIRED), (void **) &required) == FAILURE) { | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here | |
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); | |
^ | |
/home/will/php-protobuf/protobuf.c:518:121: warning: comparison between pointer and integer | |
if (zend_hash_find(Z_ARRVAL_PP(field_descriptor), PB_FIELD_REQUIRED, sizeof(PB_FIELD_REQUIRED), (void **) &required) == FAILURE) { | |
^ | |
/home/will/php-protobuf/protobuf.c:523:8: warning: implicit declaration of function ‘Z_BVAL_PP’ [-Wimplicit-function-declaration] | |
if (Z_BVAL_PP(required) ) { | |
^ | |
/home/will/php-protobuf/protobuf.c:534:23: warning: passing argument 1 of ‘zend_hash_find’ makes pointer from integer without a cast [-Wint-conversion] | |
if (zend_hash_find(Z_ARRVAL_PP(field_descriptor), PB_FIELD_PACKED, sizeof(PB_FIELD_PACKED), (void **) &packed) != FAILURE && Z_BVAL_PP(packed | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘const HashTable * {aka const struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); | |
^ | |
/home/will/php-protobuf/protobuf.c:40:25: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types] | |
#define PB_FIELD_PACKED "packed" | |
^ | |
/home/will/php-protobuf/protobuf.c:534:54: note: in expansion of macro ‘PB_FIELD_PACKED’ | |
if (zend_hash_find(Z_ARRVAL_PP(field_descriptor), PB_FIELD_PACKED, sizeof(PB_FIELD_PACKED), (void **) &packed) != FAILURE && Z_BVAL_PP(packed | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:154: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); | |
^ | |
/home/will/php-protobuf/protobuf.c:534:8: error: too many arguments to function ‘zend_hash_find’ | |
if (zend_hash_find(Z_ARRVAL_PP(field_descriptor), PB_FIELD_PACKED, sizeof(PB_FIELD_PACKED), (void **) &packed) != FAILURE && Z_BVAL_PP(packed | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here | |
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); | |
^ | |
/home/will/php-protobuf/protobuf.c:534:115: warning: comparison between pointer and integer | |
if (zend_hash_find(Z_ARRVAL_PP(field_descriptor), PB_FIELD_PACKED, sizeof(PB_FIELD_PACKED), (void **) &packed) != FAILURE && Z_BVAL_PP(packed | |
^ | |
In file included from /home/will/php-protobuf/protobuf.c:6:0: | |
/home/will/php-protobuf/protobuf.h:7:43: warning: passing argument 1 of ‘zend_hash_internal_pointer_reset_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
for (zend_hash_internal_pointer_reset_ex((hash), (iter)); zend_hash_has_more_elements_ex((hash), (iter)) == SUCCESS; zend_hash_move_forward_ex( | |
^ | |
/home/will/php-protobuf/protobuf.c:538:5: note: in expansion of macro ‘PB_FOREACH’ | |
PB_FOREACH(&j, Z_ARRVAL_PP(array)) { | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:172:30: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API void ZEND_FASTCALL zend_hash_internal_pointer_reset_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.h:7:91: warning: passing argument 1 of ‘zend_hash_get_current_key_type_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
for (zend_hash_internal_pointer_reset_ex((hash), (iter)); zend_hash_has_more_elements_ex((hash), (iter)) == SUCCESS; zend_hash_move_forward_ex( | |
^ | |
/usr/include/php/20151012/Zend/zend_hash.h:165:37: note: in definition of macro ‘zend_hash_has_more_elements_ex’ | |
(zend_hash_get_current_key_type_ex(ht, pos) == HASH_KEY_NON_EXISTENT ? FAILURE : SUCCESS) | |
^ | |
/home/will/php-protobuf/protobuf.c:538:5: note: in expansion of macro ‘PB_FOREACH’ | |
PB_FOREACH(&j, Z_ARRVAL_PP(array)) { | |
^ | |
/usr/include/php/20151012/Zend/zend_hash.h:170:30: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_type_ex(HashTable *ht, HashPosition *pos); | |
^ | |
In file included from /home/will/php-protobuf/protobuf.c:6:0: | |
/home/will/php-protobuf/protobuf.h:7:145: warning: passing argument 1 of ‘zend_hash_move_forward_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
hash_internal_pointer_reset_ex((hash), (iter)); zend_hash_has_more_elements_ex((hash), (iter)) == SUCCESS; zend_hash_move_forward_ex((hash), (it | |
^ | |
/home/will/php-protobuf/protobuf.c:538:5: note: in expansion of macro ‘PB_FOREACH’ | |
PB_FOREACH(&j, Z_ARRVAL_PP(array)) { | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:166:30: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API int ZEND_FASTCALL zend_hash_move_forward_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.c:539:36: warning: passing argument 1 of ‘zend_hash_get_current_data_ex’ makes pointer from integer without a cast [-Wint-conversion] | |
zend_hash_get_current_data_ex(Z_ARRVAL_PP(array), (void **) &value, &j); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:171:30: note: expected ‘HashTable * {aka struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.c:539:56: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type [-Wincompatible-pointer-types] | |
zend_hash_get_current_data_ex(Z_ARRVAL_PP(array), (void **) &value, &j); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:171:30: note: expected ‘HashPosition * {aka unsigned int *}’ but argument is of type ‘void **’ | |
ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos); | |
^ | |
/home/will/php-protobuf/protobuf.c:539:6: error: too many arguments to function ‘zend_hash_get_current_data_ex’ | |
zend_hash_get_current_data_ex(Z_ARRVAL_PP(array), (void **) &value, &j); | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/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); | |
^ | |
/home/will/php-protobuf/protobuf.c:550:35: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2 | |
RETURN_STRINGL(pack, pack_size, 0); | |
^ | |
/home/will/php-protobuf/protobuf.c:550:2: error: ‘RETURN_STRINGL’ undeclared (first use in this function) | |
RETURN_STRINGL(pack, pack_size, 0); | |
^ | |
In file included from /usr/include/php/20151012/main/php.h:40:0, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/home/will/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_set’: | |
/home/will/php-protobuf/protobuf.c:45:35: error: ‘this_ptr’ undeclared (first use in this function) | |
#define RETURN_THIS() RETURN_ZVAL(this_ptr, 1, 0); | |
^ | |
/usr/include/php/20151012/Zend/zend_API.h:595:17: note: in definition of macro ‘ZVAL_ZVAL’ | |
zval *__zv = (zv); \ | |
^ | |
/usr/include/php/20151012/Zend/zend_API.h:642:40: note: in expansion of macro ‘RETVAL_ZVAL’ | |
#define RETURN_ZVAL(zv, copy, dtor) { RETVAL_ZVAL(zv, copy, dtor); return; } | |
^ | |
/home/will/php-protobuf/protobuf.c:45:23: note: in expansion of macro ‘RETURN_ZVAL’ | |
#define RETURN_THIS() RETURN_ZVAL(this_ptr, 1, 0); | |
^ | |
/home/will/php-protobuf/protobuf.c:564:3: note: in expansion of macro ‘RETURN_THIS’ | |
RETURN_THIS(); | |
^ | |
/home/will/php-protobuf/protobuf.c: In function ‘zm_startup_protobuf’: | |
/home/will/php-protobuf/protobuf.c:649:23: warning: implicit declaration of function ‘zend_get_hash_value’ [-Wimplicit-function-declaration] | |
PB_FIELD_TYPE_HASH = zend_get_hash_value(PB_FIELD_TYPE, sizeof(PB_FIELD_TYPE)); | |
^ | |
/home/will/php-protobuf/protobuf.c: In function ‘pb_assign_value’: | |
/home/will/php-protobuf/protobuf.c:19:26: warning: implicit declaration of function ‘PZVAL_IS_REF’ [-Wimplicit-function-declaration] | |
#define Z_UNSET_ISREF(z) PZVAL_IS_REF(&(z)) = 0 | |
^ | |
/home/will/php-protobuf/protobuf.c:705:2: note: in expansion of macro ‘Z_UNSET_ISREF’ | |
Z_UNSET_ISREF(tmp); | |
^ | |
/home/will/php-protobuf/protobuf.c:19:45: error: lvalue required as left operand of assignment | |
#define Z_UNSET_ISREF(z) PZVAL_IS_REF(&(z)) = 0 | |
^ | |
/home/will/php-protobuf/protobuf.c:705:2: note: in expansion of macro ‘Z_UNSET_ISREF’ | |
Z_UNSET_ISREF(tmp); | |
^ | |
/home/will/php-protobuf/protobuf.c: In function ‘pb_print_field_value’: | |
/home/will/php-protobuf/protobuf.c:762:31: error: ‘IS_BOOL’ undeclared (first use in this function) | |
else if (Z_TYPE_PP(value) == IS_BOOL) { | |
^ | |
/home/will/php-protobuf/protobuf.c:19:45: error: lvalue required as left operand of assignment | |
#define Z_UNSET_ISREF(z) PZVAL_IS_REF(&(z)) = 0 | |
^ | |
/home/will/php-protobuf/protobuf.c:771:3: note: in expansion of macro ‘Z_UNSET_ISREF’ | |
Z_UNSET_ISREF(tmp); | |
^ | |
/home/will/php-protobuf/protobuf.c: In function ‘pb_print_debug_field_value’: | |
/home/will/php-protobuf/protobuf.c:797:16: error: lvalue required as left operand of assignment | |
Z_TYPE(arg0) = IS_LONG; | |
^ | |
/home/will/php-protobuf/protobuf.c:803:52: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 | |
ZVAL_STRING(&tmp, PB_PRINT_DEBUG_STRING_METHOD, 0); | |
^ | |
/home/will/php-protobuf/protobuf.c:803:3: error: ‘ZVAL_STRING’ undeclared (first use in this function) | |
ZVAL_STRING(&tmp, PB_PRINT_DEBUG_STRING_METHOD, 0); | |
^ | |
/home/will/php-protobuf/protobuf.c:805:32: warning: passing argument 2 of ‘call_user_function’ from incompatible pointer type [-Wincompatible-pointer-types] | |
if (call_user_function(NULL, value, &tmp, &ret, 1, args TSRMLS_CC) == FAILURE) | |
^ | |
In file included from /usr/include/php/20151012/main/php.h:40:0, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_API.h:471:14: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’ | |
ZEND_API int call_user_function(HashTable *function_table, zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval param | |
^ | |
/home/will/php-protobuf/protobuf.c:805:54: warning: passing argument 6 of ‘call_user_function’ from incompatible pointer type [-Wincompatible-pointer-types] | |
if (call_user_function(NULL, value, &tmp, &ret, 1, args TSRMLS_CC) == FAILURE) | |
^ | |
In file included from /usr/include/php/20151012/main/php.h:40:0, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_API.h:471:14: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’ | |
ZEND_API int call_user_function(HashTable *function_table, zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval param | |
^ | |
/home/will/php-protobuf/protobuf.c: In function ‘pb_dump_field_value’: | |
/home/will/php-protobuf/protobuf.c:825:18: error: ‘IS_BOOL’ undeclared (first use in this function) | |
Z_TYPE(arg0) = IS_BOOL; | |
^ | |
/home/will/php-protobuf/protobuf.c:830:16: error: lvalue required as left operand of assignment | |
Z_TYPE(arg1) = IS_LONG; | |
^ | |
/home/will/php-protobuf/protobuf.c:837:38: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 | |
ZVAL_STRING(&tmp, PB_DUMP_METHOD, 0); | |
^ | |
/home/will/php-protobuf/protobuf.c:837:3: error: ‘ZVAL_STRING’ undeclared (first use in this function) | |
ZVAL_STRING(&tmp, PB_DUMP_METHOD, 0); | |
^ | |
/home/will/php-protobuf/protobuf.c:839:32: warning: passing argument 2 of ‘call_user_function’ from incompatible pointer type [-Wincompatible-pointer-types] | |
if (call_user_function(NULL, value, &tmp, &ret, 2, args TSRMLS_CC) == FAILURE) | |
^ | |
In file included from /usr/include/php/20151012/main/php.h:40:0, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_API.h:471:14: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’ | |
ZEND_API int call_user_function(HashTable *function_table, zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval param | |
^ | |
/home/will/php-protobuf/protobuf.c:839:54: warning: passing argument 6 of ‘call_user_function’ from incompatible pointer type [-Wincompatible-pointer-types] | |
if (call_user_function(NULL, value, &tmp, &ret, 2, args TSRMLS_CC) == FAILURE) | |
^ | |
In file included from /usr/include/php/20151012/main/php.h:40:0, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_API.h:471:14: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’ | |
ZEND_API int call_user_function(HashTable *function_table, zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval param | |
^ | |
/home/will/php-protobuf/protobuf.c: In function ‘pb_get_field_descriptor’: | |
/home/will/php-protobuf/protobuf.c:853:6: error: too many arguments to function ‘zend_hash_index_find’ | |
if (zend_hash_index_find(Z_ARRVAL_P(field_descriptors), field_number, (void **) &field_descriptor) == FAILURE) | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:156:30: note: declared here | |
ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); | |
^ | |
/home/will/php-protobuf/protobuf.c:853:101: warning: comparison between pointer and integer | |
if (zend_hash_index_find(Z_ARRVAL_P(field_descriptors), field_number, (void **) &field_descriptor) == FAILURE) | |
^ | |
/home/will/php-protobuf/protobuf.c: In function ‘pb_get_field_type’: | |
/home/will/php-protobuf/protobuf.c:864:6: warning: implicit declaration of function ‘zend_hash_quick_find’ [-Wimplicit-function-declaration] | |
if (zend_hash_quick_find(Z_ARRVAL_PP(field_descriptor), PB_FIELD_TYPE, sizeof(PB_FIELD_TYPE), PB_FIELD_TYPE_HASH, (void **) &field_type) == FAI | |
^ | |
/home/will/php-protobuf/protobuf.c: In function ‘pb_get_field_descriptors’: | |
/home/will/php-protobuf/protobuf.c:876:73: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3 | |
ZVAL_STRINGL(&method, PB_FIELDS_METHOD, sizeof(PB_FIELDS_METHOD) - 1, 0); | |
^ | |
/home/will/php-protobuf/protobuf.c:876:2: error: ‘ZVAL_STRINGL’ undeclared (first use in this function) | |
ZVAL_STRINGL(&method, PB_FIELDS_METHOD, sizeof(PB_FIELDS_METHOD) - 1, 0); | |
^ | |
/home/will/php-protobuf/protobuf.c:878:30: warning: passing argument 2 of ‘call_user_function_ex’ from incompatible pointer type [-Wincompatible-pointer-types] | |
call_user_function_ex(NULL, &this, &method, &descriptors, 0, NULL, 0, NULL TSRMLS_CC); | |
^ | |
In file included from /usr/include/php/20151012/main/php.h:40:0, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_API.h:472:14: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’ | |
ZEND_API int call_user_function_ex(HashTable *function_table, zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval pa | |
^ | |
/home/will/php-protobuf/protobuf.c:878:46: warning: passing argument 4 of ‘call_user_function_ex’ from incompatible pointer type [-Wincompatible-pointer-types] | |
call_user_function_ex(NULL, &this, &method, &descriptors, 0, NULL, 0, NULL TSRMLS_CC); | |
^ | |
In file included from /usr/include/php/20151012/main/php.h:40:0, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_API.h:472:14: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’ | |
ZEND_API int call_user_function_ex(HashTable *function_table, zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval pa | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:31:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/home/will/php-protobuf/protobuf.c: In function ‘pb_get_field_name’: | |
/usr/include/php/20151012/Zend/zend_compile.h:494:26: error: ‘execute_data’ undeclared (first use in this function) | |
#define EX(element) ((execute_data)->element) | |
^ | |
/usr/include/php/20151012/Zend/zend_types.h:530:26: note: in definition of macro ‘Z_OBJ’ | |
#define Z_OBJ(zval) (zval).value.obj | |
^ | |
/usr/include/php/20151012/Zend/zend_API.h:361:32: note: in expansion of macro ‘EX’ | |
#define getThis() (Z_OBJ(EX(This)) ? &EX(This) : NULL) | |
^ | |
/home/will/php-protobuf/protobuf.c:892:52: note: in expansion of macro ‘getThis’ | |
if ((field_descriptors = pb_get_field_descriptors(getThis())) == NULL) | |
^ | |
/home/will/php-protobuf/protobuf.c:898:21: warning: passing argument 1 of ‘zend_hash_find’ makes pointer from integer without a cast [-Wint-conversion] | |
if (zend_hash_find(Z_ARRVAL_PP((field_descriptor)), PB_FIELD_NAME, sizeof(PB_FIELD_NAME), (void **) &(field_name))) { | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: expected ‘const HashTable * {aka const struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); | |
^ | |
/home/will/php-protobuf/protobuf.c:39:23: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types] | |
#define PB_FIELD_NAME "name" | |
^ | |
/home/will/php-protobuf/protobuf.c:898:54: note: in expansion of macro ‘PB_FIELD_NAME’ | |
if (zend_hash_find(Z_ARRVAL_PP((field_descriptor)), PB_FIELD_NAME, sizeof(PB_FIELD_NAME), (void **) &(field_name))) { | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:154: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); | |
^ | |
/home/will/php-protobuf/protobuf.c:898:6: error: too many arguments to function ‘zend_hash_find’ | |
if (zend_hash_find(Z_ARRVAL_PP((field_descriptor)), PB_FIELD_NAME, sizeof(PB_FIELD_NAME), (void **) &(field_name))) { | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:154:30: note: declared here | |
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); | |
^ | |
/home/will/php-protobuf/protobuf.c:903:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] | |
return (const char *) Z_STRVAL_PP(field_name); | |
^ | |
/home/will/php-protobuf/protobuf.c: In function ‘pb_get_value’: | |
/home/will/php-protobuf/protobuf.c:975:27: warning: passing argument 1 of ‘zend_hash_index_find’ makes pointer from integer without a cast [-Wint-conversion] | |
if (zend_hash_index_find(Z_ARRVAL_PP(values), field_number, (void **) &value) == FAILURE) | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:156:30: note: expected ‘const HashTable * {aka const struct _zend_array *}’ but argument is of type ‘int’ | |
ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); | |
^ | |
/home/will/php-protobuf/protobuf.c:975:6: error: too many arguments to function ‘zend_hash_index_find’ | |
if (zend_hash_index_find(Z_ARRVAL_PP(values), field_number, (void **) &value) == FAILURE) | |
^ | |
In file included from /usr/include/php/20151012/Zend/zend.h:36:0, | |
from /usr/include/php/20151012/main/php.h:36, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_hash.h:156:30: note: declared here | |
ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); | |
^ | |
/home/will/php-protobuf/protobuf.c:975:80: warning: comparison between pointer and integer | |
if (zend_hash_index_find(Z_ARRVAL_PP(values), field_number, (void **) &value) == FAILURE) | |
^ | |
/home/will/php-protobuf/protobuf.c: In function ‘pb_parse_field_value’: | |
/home/will/php-protobuf/protobuf.c:999:20: error: lvalue required as left operand of assignment | |
Z_TYPE_P(value) = IS_DOUBLE; | |
^ | |
/home/will/php-protobuf/protobuf.c:1004:20: error: lvalue required as left operand of assignment | |
Z_TYPE_P(value) = IS_LONG; | |
^ | |
/home/will/php-protobuf/protobuf.c:1009:20: error: lvalue required as left operand of assignment | |
Z_TYPE_P(value) = IS_LONG; | |
^ | |
/home/will/php-protobuf/protobuf.c:1014:20: error: lvalue required as left operand of assignment | |
Z_TYPE_P(value) = IS_DOUBLE; | |
^ | |
/home/will/php-protobuf/protobuf.c:1019:20: error: lvalue required as left operand of assignment | |
Z_TYPE_P(value) = IS_LONG; | |
^ | |
/home/will/php-protobuf/protobuf.c:1024:22: error: ‘IS_BOOL’ undeclared (first use in this function) | |
Z_TYPE_P(value) = IS_BOOL; | |
^ | |
/home/will/php-protobuf/protobuf.c:1029:20: error: lvalue required as left operand of assignment | |
Z_TYPE_P(value) = IS_LONG; | |
^ | |
/home/will/php-protobuf/protobuf.c:1035:41: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3 | |
ZVAL_STRINGL(value, str, str_size, 1); | |
^ | |
/home/will/php-protobuf/protobuf.c:1035:5: error: ‘ZVAL_STRINGL’ undeclared (first use in this function) | |
ZVAL_STRINGL(value, str, str_size, 1); | |
^ | |
/home/will/php-protobuf/protobuf.c: In function ‘pb_serialize_field_value’: | |
/home/will/php-protobuf/protobuf.c:1058:56: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 | |
ZVAL_STRING(&method, PB_SERIALIZE_TO_STRING_METHOD, 0); | |
^ | |
/home/will/php-protobuf/protobuf.c:1058:3: error: ‘ZVAL_STRING’ undeclared (first use in this function) | |
ZVAL_STRING(&method, PB_SERIALIZE_TO_STRING_METHOD, 0); | |
^ | |
/home/will/php-protobuf/protobuf.c:1060:32: warning: passing argument 2 of ‘call_user_function’ from incompatible pointer type [-Wincompatible-pointer-types] | |
if (call_user_function(NULL, value, &method, &ret, 0, NULL TSRMLS_CC) == FAILURE) | |
^ | |
In file included from /usr/include/php/20151012/main/php.h:40:0, | |
from /home/will/php-protobuf/protobuf.c:1: | |
/usr/include/php/20151012/Zend/zend_API.h:471:14: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’ | |
ZEND_API int call_user_function(HashTable *function_table, zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval param | |
^ | |
/home/will/php-protobuf/protobuf.c:1074:51: warning: implicit declaration of function ‘Z_DVAL_PP’ [-Wimplicit-function-declaration] | |
r = writer_write_double(writer, field_number, Z_DVAL_PP(value)); | |
^ | |
/home/will/php-protobuf/protobuf.c:1099:51: warning: passing argument 3 of ‘writer_write_string’ makes pointer from integer without a cast [-Wint-conversion] | |
r = writer_write_string(writer, field_number, Z_STRVAL_PP(value), Z_STRLEN_PP(value)); | |
^ | |
In file included from /home/will/php-protobuf/protobuf.c:8:0: | |
/home/will/php-protobuf/writer.h:26:5: note: expected ‘const char *’ but argument is of type ‘int’ | |
int writer_write_string(writer_t *writer, uint32_t field_number, const char *str, size_t len); | |
^ | |
Makefile:193: recipe for target 'protobuf.lo' failed | |
make: *** [protobuf.lo] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment