cc -I. -I/root/php-ext-source/php-ext-collection -I/root/php-ext-source/php-ext-collection/include -I/root/php-ext-source/php-ext-collection/main -I/root/php-ext-source/php-ext-collection -I/usr/local/services/php8/include/php -I/usr/local/services/php8/include/php/main -I/usr/local/services/php8/include/php/TSRM -I/usr/local/services/php8/include/php/Zend -I/usr/local/services/php8/include/php/ext -I/usr/local/services/php8/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /root/php-ext-source/php-ext-collection/src/method.c -MMD -MF src/method.dep -MT src/method.lo -fPIC -DPIC -o src/.libs/method.o
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_init’:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:43:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_map’:
/root/php-ext-source/php-ext-collection/src/method.c:63:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval )&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_BUCKET(CURRENT_COLLECTION, Bucket bucket)
^
/root/php-ext-source/php-ext-collection/src/method.c:63:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:68:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_all’:
/root/php-ext-source/php-ext-collection/src/method.c:78:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
GC_ADDREF(CURRENT_COLLECTION);
^
/root/php-ext-source/php-ext-collection/src/method.c:78:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:80:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZVAL_ARR(return_value, CURRENT_COLLECTION);
^
/root/php-ext-source/php-ext-collection/src/method.c:80:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_avg’:
/root/php-ext-source/php-ext-collection/src/method.c:98:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
sum = average_no_column(CURRENT_COLLECTION);
^
/root/php-ext-source/php-ext-collection/src/method.c:98:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:100:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
sum = average_column(CURRENT_COLLECTION, column);
^
/root/php-ext-source/php-ext-collection/src/method.c:100:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:103:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZVAL_DOUBLE(return_value, (sum/zend_hash_num_elements(CURRENT_COLLECTION)))
^
/root/php-ext-source/php-ext-collection/src/method.c:103:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:104:1: error: expected ‘;’ before ‘}’ token
}
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_chunk’:
/root/php-ext-source/php-ext-collection/src/method.c:123:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
collection_chunk(CURRENT_COLLECTION, length, return_value);
^
/root/php-ext-source/php-ext-collection/src/method.c:123:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_collapse’:
/root/php-ext-source/php-ext-collection/src/method.c:135:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
collection_collapse(CURRENT_COLLECTION, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c:135:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:137:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_count’:
/root/php-ext-source/php-ext-collection/src/method.c:147:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZVAL_LONG(return_value, CURRENT_COLLECTION_COUNT);
^
/root/php-ext-source/php-ext-collection/src/method.c:147:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_toArray’:
/root/php-ext-source/php-ext-collection/src/method.c:155:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZVAL_ARR(return_value, CURRENT_COLLECTION);
^
/root/php-ext-source/php-ext-collection/src/method.c:155:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/method.c:157:5: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(return_value);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_combine’:
/root/php-ext-source/php-ext-collection/src/method.c:173:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
collection_combine(CURRENT_COLLECTION, val, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c:173:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:175:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_concat’:
/root/php-ext-source/php-ext-collection/src/method.c:193:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
collection_concat(CURRENT_COLLECTION, val, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c:193:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:195:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_contains’:
/root/php-ext-source/php-ext-collection/src/method.c:214:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
VAL_IN_COLLECTION(CURRENT_COLLECTION, key, return_value);
^
/root/php-ext-source/php-ext-collection/src/method.c:214:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:216:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
KV_IN_COLLECTION(CURRENT_COLLECTION, key, val, return_value);
^
/root/php-ext-source/php-ext-collection/src/method.c:216:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_diff’:
/root/php-ext-source/php-ext-collection/src/method.c:231:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
collection_diff(CURRENT_COLLECTION, val, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c:231:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:233:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_diffAssoc’:
/root/php-ext-source/php-ext-collection/src/method.c:249:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
collection_diff_assoc(CURRENT_COLLECTION, val, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c:249:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:251:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_every’:
/root/php-ext-source/php-ext-collection/src/method.c:271:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval )&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_BUCKET(CURRENT_COLLECTION, Bucket bucket)
^
/root/php-ext-source/php-ext-collection/src/method.c:271:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_except’:
/root/php-ext-source/php-ext-collection/src/method.c:296:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
collection_except(CURRENT_COLLECTION, excluded_keys, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c:296:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:298:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_filter’:
/root/php-ext-source/php-ext-collection/src/method.c:320:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval )&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_BUCKET(CURRENT_COLLECTION, Bucket bucket)
^
/root/php-ext-source/php-ext-collection/src/method.c:320:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:330:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval )&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_BUCKET(CURRENT_COLLECTION, Bucket bucket)
^
/root/php-ext-source/php-ext-collection/src/method.c:330:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:339:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_first’:
/root/php-ext-source/php-ext-collection/src/method.c:358:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZVAL_COPY(return_value, &(CURRENT_COLLECTION->arData[0].val));
^
/root/php-ext-source/php-ext-collection/src/method.c:358:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:364:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval )&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_BUCKET(CURRENT_COLLECTION, Bucket bucket)
^
/root/php-ext-source/php-ext-collection/src/method.c:364:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_firstWhere’:
/root/php-ext-source/php-ext-collection/src/method.c:394:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_VAL(CURRENT_COLLECTION, zval *value)
^
/root/php-ext-source/php-ext-collection/src/method.c:394:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:410:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_VAL(CURRENT_COLLECTION, zval *value)
^
/root/php-ext-source/php-ext-collection/src/method.c:410:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:424:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_flatMap’:
/root/php-ext-source/php-ext-collection/src/method.c:444:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
COLLECTION_INIT_IN_CURRENT(&result);
^
/root/php-ext-source/php-ext-collection/src/method.c:444:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:446:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_BUCKET(CURRENT_COLLECTION, Bucket *bucket)
^
/root/php-ext-source/php-ext-collection/src/method.c:446:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:452:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_flatten’:
/root/php-ext-source/php-ext-collection/src/method.c:472:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
collection_flatten(CURRENT_COLLECTION, depth, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c:472:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:474:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_flip’:
/root/php-ext-source/php-ext-collection/src/method.c:486:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
collection_flip(CURRENT_COLLECTION, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c:486:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:488:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_forget’:
/root/php-ext-source/php-ext-collection/src/method.c:504:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
COLLECTION_STRING_DELETE(CURRENT_COLLECTION, key);
^
/root/php-ext-source/php-ext-collection/src/method.c:504:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_forPage’:
/root/php-ext-source/php-ext-collection/src/method.c:524:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
collection_for_page(CURRENT_COLLECTION, page, number, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c:524:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:526:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_get’:
/root/php-ext-source/php-ext-collection/src/method.c:545:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
COLLECTION_INDEX_FIND(CURRENT_COLLECTION, Z_LVAL_P(key), find_result);
^
/root/php-ext-source/php-ext-collection/src/method.c:545:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:545:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
/root/php-ext-source/php-ext-collection/src/method.c:545:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:549:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
COLLECTION_STR_FIND(CURRENT_COLLECTION, Z_STR_P(key), find_result);
^
/root/php-ext-source/php-ext-collection/src/method.c:549:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_groupBy’:
/root/php-ext-source/php-ext-collection/src/method.c:594:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_BUCKET(CURRENT_COLLECTION, Bucket *bucket)
^
/root/php-ext-source/php-ext-collection/src/method.c:594:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:600:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_VAL(CURRENT_COLLECTION, zval *value)
^
/root/php-ext-source/php-ext-collection/src/method.c:600:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:605:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_has’:
/root/php-ext-source/php-ext-collection/src/method.c:622:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
COLLECTION_STR_FIND(CURRENT_COLLECTION, Z_STR_P(key), find_res);
^
/root/php-ext-source/php-ext-collection/src/method.c:622:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:626:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
COLLECTION_INDEX_FIND(CURRENT_COLLECTION, Z_LVAL_P(key), find_res);
^
/root/php-ext-source/php-ext-collection/src/method.c:626:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:626:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
/root/php-ext-source/php-ext-collection/src/method.c:626:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_implode’:
/root/php-ext-source/php-ext-collection/src/method.c:654:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
elements_len = zend_hash_num_elements(CURRENT_COLLECTION);
^
/root/php-ext-source/php-ext-collection/src/method.c:654:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:657:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_VAL(CURRENT_COLLECTION, zval *val)
^
/root/php-ext-source/php-ext-collection/src/method.c:657:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:665:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_VAL(CURRENT_COLLECTION, zval *val)
^
/root/php-ext-source/php-ext-collection/src/method.c:665:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_intersect’:
/root/php-ext-source/php-ext-collection/src/method.c:706:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
COLLECTION_INIT_IN_CURRENT(&total);
^
/root/php-ext-source/php-ext-collection/src/method.c:706:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:708:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
current_length = CURRENT_COLLECTION_COUNT;
^
/root/php-ext-source/php-ext-collection/src/method.c:708:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/method.c:712:9: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(val);
^
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:742:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_intersectByKeys’:
/root/php-ext-source/php-ext-collection/src/method.c:765:13: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
find_res = zend_hash_index_find(CURRENT_COLLECTION, long_key);
^
/root/php-ext-source/php-ext-collection/src/method.c:765:13: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:767:13: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
find_res = zend_hash_find(CURRENT_COLLECTION, str_key);
^
/root/php-ext-source/php-ext-collection/src/method.c:767:13: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/method.c:777:13: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(find_res);
^
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:781:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_isEmpty’:
/root/php-ext-source/php-ext-collection/src/method.c:791:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
if (CURRENT_COLLECTION_COUNT) {
^
/root/php-ext-source/php-ext-collection/src/method.c:791:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_isNotEmpty’:
/root/php-ext-source/php-ext-collection/src/method.c:803:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
if (CURRENT_COLLECTION_COUNT) {
^
/root/php-ext-source/php-ext-collection/src/method.c:803:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_keyBy’:
/root/php-ext-source/php-ext-collection/src/method.c:839:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_VAL(CURRENT_COLLECTION, zval *val)
^
/root/php-ext-source/php-ext-collection/src/method.c:839:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/method.c:847:13: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(val);
^
/root/php-ext-source/php-ext-collection/src/method.c:854:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_BUCKET(CURRENT_COLLECTION, Bucket *bucket)
^
/root/php-ext-source/php-ext-collection/src/method.c:854:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/method.c:860:13: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(&bucket->val);
^
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:864:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_keys’:
/root/php-ext-source/php-ext-collection/src/method.c:878:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_KEY(CURRENT_COLLECTION, zend_ulong long_key, zend_string *str_key)
^
/root/php-ext-source/php-ext-collection/src/method.c:878:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:886:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_last’:
/root/php-ext-source/php-ext-collection/src/method.c:907:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_BUCKET(CURRENT_COLLECTION, Bucket *bucket)
^
/root/php-ext-source/php-ext-collection/src/method.c:907:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:914:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
COLLECTION_INDEX_FIND(CURRENT_COLLECTION, CURRENT_COLLECTION_COUNT-1, find_res);
^
/root/php-ext-source/php-ext-collection/src/method.c:914:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:914:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
/root/php-ext-source/php-ext-collection/src/method.c:914:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:914:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
/root/php-ext-source/php-ext-collection/src/method.c:914:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:914:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
/root/php-ext-source/php-ext-collection/src/method.c:914:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_mapToGroups’:
/root/php-ext-source/php-ext-collection/src/method.c:938:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_BUCKET(CURRENT_COLLECTION, Bucket *bucket)
^
/root/php-ext-source/php-ext-collection/src/method.c:938:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/method.c:963:9: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(new_val);
^
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:967:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_max’:
/root/php-ext-source/php-ext-collection/src/method.c:985:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
result = zend_hash_minmax(CURRENT_COLLECTION, collection_compare, 1);
^
/root/php-ext-source/php-ext-collection/src/method.c:985:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval ’
/root/php-ext-source/php-ext-collection/src/method.c:985:9: warning: passing argument 2 of ‘zend_hash_minmax’ from incompatible pointer type [enabled by default]
In file included from /usr/local/services/php8/include/php/Zend/zend.h:33:0,
from /usr/local/services/php8/include/php/main/php.h:31,
from /root/php-ext-source/php-ext-collection/src/include.h:16,
from /root/php-ext-source/php-ext-collection/src/method.c:13:
/usr/local/services/php8/include/php/Zend/zend_hash.h:287:30: note: expected ‘bucket_compare_func_t’ but argument is of type ‘int ()(const void *, const void )’
ZEND_API zval ZEND_FASTCALL zend_hash_minmax(const HashTable *ht, bucket_compare_func_t compar, uint32_t flag);
^
/root/php-ext-source/php-ext-collection/src/method.c:987:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
result = zend_hash_key_minmax(CURRENT_COLLECTION, key, collection_compare_by_key, 1);
^
/root/php-ext-source/php-ext-collection/src/method.c:987:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_avg’:
/root/php-ext-source/php-ext-collection/src/method.c:991:1: error: expected declaration or statement at end of input
}
^
make: *** [Makefile:213: src/method.lo] Error 1
cc -I. -I/root/php-ext-source/php-ext-collection -I/root/php-ext-source/php-ext-collection/include -I/root/php-ext-source/php-ext-collection/main -I/root/php-ext-source/php-ext-collection -I/usr/local/services/php8/include/php -I/usr/local/services/php8/include/php/main -I/usr/local/services/php8/include/php/TSRM -I/usr/local/services/php8/include/php/Zend -I/usr/local/services/php8/include/php/ext -I/usr/local/services/php8/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /root/php-ext-source/php-ext-collection/src/method.c -MMD -MF src/method.dep -MT src/method.lo -fPIC -DPIC -o src/.libs/method.o
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_init’:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:43:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_map’:
/root/php-ext-source/php-ext-collection/src/method.c:63:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval )&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_BUCKET(CURRENT_COLLECTION, Bucket bucket)
^
/root/php-ext-source/php-ext-collection/src/method.c:63:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:68:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_all’:
/root/php-ext-source/php-ext-collection/src/method.c:78:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
GC_ADDREF(CURRENT_COLLECTION);
^
/root/php-ext-source/php-ext-collection/src/method.c:78:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:80:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZVAL_ARR(return_value, CURRENT_COLLECTION);
^
/root/php-ext-source/php-ext-collection/src/method.c:80:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_avg’:
/root/php-ext-source/php-ext-collection/src/method.c:98:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
sum = average_no_column(CURRENT_COLLECTION);
^
/root/php-ext-source/php-ext-collection/src/method.c:98:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:100:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
sum = average_column(CURRENT_COLLECTION, column);
^
/root/php-ext-source/php-ext-collection/src/method.c:100:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:103:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZVAL_DOUBLE(return_value, (sum/zend_hash_num_elements(CURRENT_COLLECTION)))
^
/root/php-ext-source/php-ext-collection/src/method.c:103:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:104:1: error: expected ‘;’ before ‘}’ token
}
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_chunk’:
/root/php-ext-source/php-ext-collection/src/method.c:123:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
collection_chunk(CURRENT_COLLECTION, length, return_value);
^
/root/php-ext-source/php-ext-collection/src/method.c:123:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_collapse’:
/root/php-ext-source/php-ext-collection/src/method.c:135:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
collection_collapse(CURRENT_COLLECTION, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c:135:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:137:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_count’:
/root/php-ext-source/php-ext-collection/src/method.c:147:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZVAL_LONG(return_value, CURRENT_COLLECTION_COUNT);
^
/root/php-ext-source/php-ext-collection/src/method.c:147:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_toArray’:
/root/php-ext-source/php-ext-collection/src/method.c:155:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZVAL_ARR(return_value, CURRENT_COLLECTION);
^
/root/php-ext-source/php-ext-collection/src/method.c:155:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/method.c:157:5: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(return_value);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_combine’:
/root/php-ext-source/php-ext-collection/src/method.c:173:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
collection_combine(CURRENT_COLLECTION, val, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c:173:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:175:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_concat’:
/root/php-ext-source/php-ext-collection/src/method.c:193:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
collection_concat(CURRENT_COLLECTION, val, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c:193:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:195:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_contains’:
/root/php-ext-source/php-ext-collection/src/method.c:214:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
VAL_IN_COLLECTION(CURRENT_COLLECTION, key, return_value);
^
/root/php-ext-source/php-ext-collection/src/method.c:214:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:216:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
KV_IN_COLLECTION(CURRENT_COLLECTION, key, val, return_value);
^
/root/php-ext-source/php-ext-collection/src/method.c:216:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_diff’:
/root/php-ext-source/php-ext-collection/src/method.c:231:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
collection_diff(CURRENT_COLLECTION, val, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c:231:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:233:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_diffAssoc’:
/root/php-ext-source/php-ext-collection/src/method.c:249:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
collection_diff_assoc(CURRENT_COLLECTION, val, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c:249:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:251:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_every’:
/root/php-ext-source/php-ext-collection/src/method.c:271:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval )&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_BUCKET(CURRENT_COLLECTION, Bucket bucket)
^
/root/php-ext-source/php-ext-collection/src/method.c:271:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_except’:
/root/php-ext-source/php-ext-collection/src/method.c:296:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
collection_except(CURRENT_COLLECTION, excluded_keys, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c:296:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:298:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_filter’:
/root/php-ext-source/php-ext-collection/src/method.c:320:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval )&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_BUCKET(CURRENT_COLLECTION, Bucket bucket)
^
/root/php-ext-source/php-ext-collection/src/method.c:320:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:330:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval )&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_BUCKET(CURRENT_COLLECTION, Bucket bucket)
^
/root/php-ext-source/php-ext-collection/src/method.c:330:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:339:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_first’:
/root/php-ext-source/php-ext-collection/src/method.c:358:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZVAL_COPY(return_value, &(CURRENT_COLLECTION->arData[0].val));
^
/root/php-ext-source/php-ext-collection/src/method.c:358:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:364:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval )&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_BUCKET(CURRENT_COLLECTION, Bucket bucket)
^
/root/php-ext-source/php-ext-collection/src/method.c:364:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_firstWhere’:
/root/php-ext-source/php-ext-collection/src/method.c:394:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_VAL(CURRENT_COLLECTION, zval *value)
^
/root/php-ext-source/php-ext-collection/src/method.c:394:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:410:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_VAL(CURRENT_COLLECTION, zval *value)
^
/root/php-ext-source/php-ext-collection/src/method.c:410:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:424:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_flatMap’:
/root/php-ext-source/php-ext-collection/src/method.c:444:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
COLLECTION_INIT_IN_CURRENT(&result);
^
/root/php-ext-source/php-ext-collection/src/method.c:444:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:446:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_BUCKET(CURRENT_COLLECTION, Bucket *bucket)
^
/root/php-ext-source/php-ext-collection/src/method.c:446:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:452:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_flatten’:
/root/php-ext-source/php-ext-collection/src/method.c:472:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
collection_flatten(CURRENT_COLLECTION, depth, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c:472:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:474:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_flip’:
/root/php-ext-source/php-ext-collection/src/method.c:486:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
collection_flip(CURRENT_COLLECTION, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c:486:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:488:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_forget’:
/root/php-ext-source/php-ext-collection/src/method.c:504:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
COLLECTION_STRING_DELETE(CURRENT_COLLECTION, key);
^
/root/php-ext-source/php-ext-collection/src/method.c:504:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_forPage’:
/root/php-ext-source/php-ext-collection/src/method.c:524:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
collection_for_page(CURRENT_COLLECTION, page, number, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c:524:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:526:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_get’:
/root/php-ext-source/php-ext-collection/src/method.c:545:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
COLLECTION_INDEX_FIND(CURRENT_COLLECTION, Z_LVAL_P(key), find_result);
^
/root/php-ext-source/php-ext-collection/src/method.c:545:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:545:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
/root/php-ext-source/php-ext-collection/src/method.c:545:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:549:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
COLLECTION_STR_FIND(CURRENT_COLLECTION, Z_STR_P(key), find_result);
^
/root/php-ext-source/php-ext-collection/src/method.c:549:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_groupBy’:
/root/php-ext-source/php-ext-collection/src/method.c:594:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_BUCKET(CURRENT_COLLECTION, Bucket *bucket)
^
/root/php-ext-source/php-ext-collection/src/method.c:594:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:600:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_VAL(CURRENT_COLLECTION, zval *value)
^
/root/php-ext-source/php-ext-collection/src/method.c:600:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:605:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_has’:
/root/php-ext-source/php-ext-collection/src/method.c:622:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
COLLECTION_STR_FIND(CURRENT_COLLECTION, Z_STR_P(key), find_res);
^
/root/php-ext-source/php-ext-collection/src/method.c:622:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:626:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
COLLECTION_INDEX_FIND(CURRENT_COLLECTION, Z_LVAL_P(key), find_res);
^
/root/php-ext-source/php-ext-collection/src/method.c:626:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:626:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
/root/php-ext-source/php-ext-collection/src/method.c:626:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_implode’:
/root/php-ext-source/php-ext-collection/src/method.c:654:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
elements_len = zend_hash_num_elements(CURRENT_COLLECTION);
^
/root/php-ext-source/php-ext-collection/src/method.c:654:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:657:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_VAL(CURRENT_COLLECTION, zval *val)
^
/root/php-ext-source/php-ext-collection/src/method.c:657:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:665:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_VAL(CURRENT_COLLECTION, zval *val)
^
/root/php-ext-source/php-ext-collection/src/method.c:665:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_intersect’:
/root/php-ext-source/php-ext-collection/src/method.c:706:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
COLLECTION_INIT_IN_CURRENT(&total);
^
/root/php-ext-source/php-ext-collection/src/method.c:706:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:708:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
current_length = CURRENT_COLLECTION_COUNT;
^
/root/php-ext-source/php-ext-collection/src/method.c:708:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/method.c:712:9: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(val);
^
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:742:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_intersectByKeys’:
/root/php-ext-source/php-ext-collection/src/method.c:765:13: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
find_res = zend_hash_index_find(CURRENT_COLLECTION, long_key);
^
/root/php-ext-source/php-ext-collection/src/method.c:765:13: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:767:13: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
find_res = zend_hash_find(CURRENT_COLLECTION, str_key);
^
/root/php-ext-source/php-ext-collection/src/method.c:767:13: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/method.c:777:13: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(find_res);
^
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:781:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_isEmpty’:
/root/php-ext-source/php-ext-collection/src/method.c:791:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
if (CURRENT_COLLECTION_COUNT) {
^
/root/php-ext-source/php-ext-collection/src/method.c:791:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_isNotEmpty’:
/root/php-ext-source/php-ext-collection/src/method.c:803:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
if (CURRENT_COLLECTION_COUNT) {
^
/root/php-ext-source/php-ext-collection/src/method.c:803:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_keyBy’:
/root/php-ext-source/php-ext-collection/src/method.c:839:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_VAL(CURRENT_COLLECTION, zval *val)
^
/root/php-ext-source/php-ext-collection/src/method.c:839:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/method.c:847:13: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(val);
^
/root/php-ext-source/php-ext-collection/src/method.c:854:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_BUCKET(CURRENT_COLLECTION, Bucket *bucket)
^
/root/php-ext-source/php-ext-collection/src/method.c:854:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/method.c:860:13: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(&bucket->val);
^
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:864:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_keys’:
/root/php-ext-source/php-ext-collection/src/method.c:878:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_KEY(CURRENT_COLLECTION, zend_ulong long_key, zend_string *str_key)
^
/root/php-ext-source/php-ext-collection/src/method.c:878:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:886:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_last’:
/root/php-ext-source/php-ext-collection/src/method.c:907:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_BUCKET(CURRENT_COLLECTION, Bucket *bucket)
^
/root/php-ext-source/php-ext-collection/src/method.c:907:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:914:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
COLLECTION_INDEX_FIND(CURRENT_COLLECTION, CURRENT_COLLECTION_COUNT-1, find_res);
^
/root/php-ext-source/php-ext-collection/src/method.c:914:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:914:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
/root/php-ext-source/php-ext-collection/src/method.c:914:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:914:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
/root/php-ext-source/php-ext-collection/src/method.c:914:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c:914:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
/root/php-ext-source/php-ext-collection/src/method.c:914:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_mapToGroups’:
/root/php-ext-source/php-ext-collection/src/method.c:938:5: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
ZEND_HASH_FOREACH_BUCKET(CURRENT_COLLECTION, Bucket *bucket)
^
/root/php-ext-source/php-ext-collection/src/method.c:938:5: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
In file included from /root/php-ext-source/php-ext-collection/src/method.c:13:0:
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/method.c:963:9: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(new_val);
^
/root/php-ext-source/php-ext-collection/src/include.h:86:28: error: lvalue required as increment operand
GC_REFCOUNT(gc)++;
^
/root/php-ext-source/php-ext-collection/src/include.h:141:17: note: in expansion of macro ‘GC_ZVAL_ADDREF’
GC_ZVAL_ADDREF(z_collection_p);
^
/root/php-ext-source/php-ext-collection/src/include.h:148:9: note: in expansion of macro ‘UPDATE_OBJ_COLLECTION’
UPDATE_OBJ_COLLECTION(ret_val, collection);
^
/root/php-ext-source/php-ext-collection/src/method.c:967:5: note: in expansion of macro ‘NEW_COLLECTION_OBJ’
NEW_COLLECTION_OBJ(return_value, &result);
^
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_max’:
/root/php-ext-source/php-ext-collection/src/method.c:985:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
result = zend_hash_minmax(CURRENT_COLLECTION, collection_compare, 1);
^
/root/php-ext-source/php-ext-collection/src/method.c:985:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval ’
/root/php-ext-source/php-ext-collection/src/method.c:985:9: warning: passing argument 2 of ‘zend_hash_minmax’ from incompatible pointer type [enabled by default]
In file included from /usr/local/services/php8/include/php/Zend/zend.h:33:0,
from /usr/local/services/php8/include/php/main/php.h:31,
from /root/php-ext-source/php-ext-collection/src/include.h:16,
from /root/php-ext-source/php-ext-collection/src/method.c:13:
/usr/local/services/php8/include/php/Zend/zend_hash.h:287:30: note: expected ‘bucket_compare_func_t’ but argument is of type ‘int ()(const void *, const void )’
ZEND_API zval ZEND_FASTCALL zend_hash_minmax(const HashTable *ht, bucket_compare_func_t compar, uint32_t flag);
^
/root/php-ext-source/php-ext-collection/src/method.c:987:9: warning: passing argument 1 of ‘((unsigned char)zval_get_type((const struct zval *)&execute_data->This) == 8u ? &execute_data->This : 0u)->value.obj->handlers->get_properties’ from incompatible pointer type [enabled by default]
result = zend_hash_key_minmax(CURRENT_COLLECTION, key, collection_compare_by_key, 1);
^
/root/php-ext-source/php-ext-collection/src/method.c:987:9: note: expected ‘struct zend_object *’ but argument is of type ‘struct zval *’
/root/php-ext-source/php-ext-collection/src/method.c: In function ‘zim_vtiful_collection_avg’:
/root/php-ext-source/php-ext-collection/src/method.c:991:1: error: expected declaration or statement at end of input
}
^
make: *** [Makefile:213: src/method.lo] Error 1