The install works perfectly on the php7 folder but when it comes to php5, the make gives a lot of errors :
▲ php5 at master ✖ make
/bin/bash /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/libtool --mode=compile cc -I. -I/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5 -DPHP_ATOM_INC -I/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/include -I/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/main -I/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c -o meminfo.lo
libtool: compile: cc -I. -I/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5 -DPHP_ATOM_INC -I/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/include -I/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/main -I/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c -fPIC -DPIC -o .libs/meminfo.o
In file included from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:6:0:
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/php_meminfo.h:16:36: error: unknown type name ‘zend_object_handle’
const char * meminfo_get_classname(zend_object_handle handle TSRMLS_DC);
^
In file included from /usr/include/php/20170718/main/php.h:465:0,
from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:5:
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c: In function ‘zif_meminfo_dump’:
/usr/include/php/20170718/main/php_streams.h:263:53: warning: passing argument 1 of ‘zend_fetch_resource2_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
if (((xstr) = (php_stream*)zend_fetch_resource2_ex((pzval), \
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:63:5: note: in expansion of macro ‘php_stream_from_zval’
php_stream_from_zval(stream, &zval_stream);
^
In file included from /usr/include/php/20170718/Zend/zend_API.h:28:0,
from /usr/include/php/20170718/main/php.h:40,
from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:5:
/usr/include/php/20170718/Zend/zend_list.h:66:16: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
ZEND_API void *zend_fetch_resource2_ex(zval *res, const char *resource_type_name, int resource_type, int resource_ty
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:77:37: error: ‘zend_execute_data {aka struct _zend_execute_data}’ has no member named ‘op_array’
while (exec_frame && !exec_frame->op_array) {
^
In file included from /usr/include/php/20170718/Zend/zend_globals.h:28:0,
from /usr/include/php/20170718/Zend/zend_compile.h:702,
from /usr/include/php/20170718/Zend/zend_modules.h:26,
from /usr/include/php/20170718/Zend/zend_API.h:27,
from /usr/include/php/20170718/main/php.h:40,
from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:5:
/usr/include/php/20170718/Zend/zend_globals_macros.h:46:33: error: ‘zend_executor_globals {aka struct _zend_executor_globals}’ has no member named ‘active_symbol_table’
# define EG(v) (executor_globals.v)
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:88:24: note: in expansion of macro ‘EG’
symbol_table = EG(active_symbol_table);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c: At top level:
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:124:36: error: unknown type name ‘zend_object_handle’
const char * meminfo_get_classname(zend_object_handle handle TSRMLS_DC)
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c: In function ‘meminfo_browse_zvals_from_symbol_table’:
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:154:56: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
while (zend_hash_get_current_data_ex(symbol_table, (void **) &zval_to_dump, &pos) == SUCCESS) {
^
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:5:
/usr/include/php/20170718/Zend/zend_hash.h:205:30: note: expected ‘HashPosition * {aka unsigned int *}’ but argument is of type ‘void **’
ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:154:12: error: too many arguments to function ‘zend_hash_get_current_data_ex’
while (zend_hash_get_current_data_ex(symbol_table, (void **) &zval_to_dump, &pos) == SUCCESS) {
^
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:5:
/usr/include/php/20170718/Zend/zend_hash.h:205:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:156:52: warning: passing argument 2 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
zend_hash_get_current_key_ex(symbol_table, &key, &key_len, &num_key, 0, &pos);
^
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:5:
/usr/include/php/20170718/Zend/zend_hash.h:202:30: note: expected ‘zend_string ** {aka struct _zend_string **}’ but argument is of type ‘char **’
ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:156:58: warning: passing argument 3 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
zend_hash_get_current_key_ex(symbol_table, &key, &key_len, &num_key, 0, &pos);
^
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:5:
/usr/include/php/20170718/Zend/zend_hash.h:202:30: note: expected ‘zend_ulong * {aka long unsigned int *}’ but argument is of type ‘uint * {aka unsigned int *}’
ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:156:68: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
zend_hash_get_current_key_ex(symbol_table, &key, &key_len, &num_key, 0, &pos);
^
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:5:
/usr/include/php/20170718/Zend/zend_hash.h:202:30: note: expected ‘HashPosition * {aka unsigned int *}’ but argument is of type ‘ulong * {aka long unsigned int *}’
ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:156:9: error: too many arguments to function ‘zend_hash_get_current_key_ex’
zend_hash_get_current_key_ex(symbol_table, &key, &key_len, &num_key, 0, &pos);
^
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:5:
/usr/include/php/20170718/Zend/zend_hash.h:202:30: note: declared here
ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c: In function ‘meminfo_visit_item’:
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:170:41: warning: passing argument 2 of ‘zend_hash_exists’ from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_exists(visited_items, item_label, strlen(item_label))) {
^
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:5:
/usr/include/php/20170718/Zend/zend_hash.h:193:34: note: expected ‘zend_string * {aka struct _zend_string *}’ but argument is of type ‘const char *’
ZEND_API zend_bool ZEND_FASTCALL zend_hash_exists(const HashTable *ht, zend_string *key);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:170:9: error: too many arguments to function ‘zend_hash_exists’
if (zend_hash_exists(visited_items, item_label, strlen(item_label))) {
^
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:5:
/usr/include/php/20170718/Zend/zend_hash.h:193:34: note: declared here
ZEND_API zend_bool ZEND_FASTCALL zend_hash_exists(const HashTable *ht, zend_string *key);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:173:98: error: macro "zend_hash_update" passed 6 arguments, but takes just 3
zend_hash_update(visited_items, item_label, strlen(item_label), &isset, sizeof(int), NULL);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:173:9: error: ‘zend_hash_update’ undeclared (first use in this function)
zend_hash_update(visited_items, item_label, strlen(item_label), &isset, sizeof(int), NULL);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:173:9: note: each undeclared identifier is reported only once for each function it appears in
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c: In function ‘meminfo_hash_dump’:
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:194:46: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
while (zend_hash_get_current_data_ex(ht, (void **) &zval, &pos) == SUCCESS) {
^
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:5:
/usr/include/php/20170718/Zend/zend_hash.h:205:30: note: expected ‘HashPosition * {aka unsigned int *}’ but argument is of type ‘void **’
ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:194:12: error: too many arguments to function ‘zend_hash_get_current_data_ex’
while (zend_hash_get_current_data_ex(ht, (void **) &zval, &pos) == SUCCESS) {
^
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:5:
/usr/include/php/20170718/Zend/zend_hash.h:205:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:202:50: warning: passing argument 2 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
switch (zend_hash_get_current_key_ex(ht, &key, &key_len, &num_key, 0, &pos)) {
^
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:5:
/usr/include/php/20170718/Zend/zend_hash.h:202:30: note: expected ‘zend_string ** {aka struct _zend_string **}’ but argument is of type ‘char **’
ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:202:56: warning: passing argument 3 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
switch (zend_hash_get_current_key_ex(ht, &key, &key_len, &num_key, 0, &pos)) {
^
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:5:
/usr/include/php/20170718/Zend/zend_hash.h:202:30: note: expected ‘zend_ulong * {aka long unsigned int *}’ but argument is of type ‘uint * {aka unsigned int *}’
ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:202:66: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
switch (zend_hash_get_current_key_ex(ht, &key, &key_len, &num_key, 0, &pos)) {
^
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:5:
/usr/include/php/20170718/Zend/zend_hash.h:202:30: note: expected ‘HashPosition * {aka unsigned int *}’ but argument is of type ‘ulong * {aka long unsigned int *}’
ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:202:17: error: too many arguments to function ‘zend_hash_get_current_key_ex’
switch (zend_hash_get_current_key_ex(ht, &key, &key_len, &num_key, 0, &pos)) {
^
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:5:
/usr/include/php/20170718/Zend/zend_hash.h:202:30: note: declared here
ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:207:94: error: macro "zend_unmangle_property_name" passed 4 arguments, but takes just 3
zend_unmangle_property_name(key, key_len - 1, &class_name, &property_name);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:207:21: error: ‘zend_unmangle_property_name’ undeclared (first use in this function)
zend_unmangle_property_name(key, key_len - 1, &class_name, &property_name);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:228:46: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
while (zend_hash_get_current_data_ex(ht, (void **) &zval, &pos) == SUCCESS) {
^
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:5:
/usr/include/php/20170718/Zend/zend_hash.h:205:30: note: expected ‘HashPosition * {aka unsigned int *}’ but argument is of type ‘void **’
ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:228:12: error: too many arguments to function ‘zend_hash_get_current_data_ex’
while (zend_hash_get_current_data_ex(ht, (void **) &zval, &pos) == SUCCESS) {
^
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
from /usr/include/php/20170718/main/php.h:36,
from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:5:
/usr/include/php/20170718/Zend/zend_hash.h:205:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c: In function ‘meminfo_zval_dump’:
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:276:44: warning: implicit declaration of function ‘meminfo_get_classname’ [-Wimplicit-function-declaration]
char_buf = meminfo_escape_for_json(meminfo_get_classname(zv->value.obj.handle TSRMLS_CC) TSRMLS_CC);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:276:79: error: request for member ‘handle’ in something not a structure or union
char_buf = meminfo_escape_for_json(meminfo_get_classname(zv->value.obj.handle TSRMLS_CC) TSRMLS_CC);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:279:99: error: request for member ‘handle’ in something not a structure or union
php_stream_printf(stream TSRMLS_CC, " \"object_handle\" : \"%d\",\n", zv->value.obj.handle);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:293:44: error: ‘zend_value {aka union _zend_value}’ has no member named ‘ht’
meminfo_hash_dump(stream, zv->value.ht, 0, visited_items, first_element TSRMLS_CC);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c: In function ‘meminfo_get_element_size’:
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:314:34: error: request for member ‘len’ in something not a structure or union
size += zv->value.str.len;
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c: In function ‘meminfo_build_frame_label’:
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:340:27: error: ‘zend_execute_data {aka struct _zend_execute_data}’ has no member named ‘function_state’
function_name = (frame->function_state.function->common.scope &&
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:341:14: error: ‘zend_execute_data {aka struct _zend_execute_data}’ has no member named ‘function_state’
frame->function_state.function->common.scope->trait_aliases) ?
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:343:26: error: ‘zend_execute_data {aka struct _zend_execute_data}’ has no member named ‘object’
frame->object ?
^
In file included from /usr/include/php/20170718/Zend/zend.h:29:0,
from /usr/include/php/20170718/main/php.h:36,
from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:5:
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:344:40: error: ‘zend_execute_data {aka struct _zend_execute_data}’ has no member named ‘object’
Z_OBJCE_P(frame->object) :
^
/usr/include/php/20170718/Zend/zend_types.h:596:26: note: in definition of macro ‘Z_OBJ’
#define Z_OBJ(zval) (zval).value.obj
^
/usr/include/php/20170718/Zend/zend_types.h:609:29: note: in expansion of macro ‘Z_OBJCE’
#define Z_OBJCE_P(zval_p) Z_OBJCE(*(zval_p))
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:344:25: note: in expansion of macro ‘Z_OBJCE_P’
Z_OBJCE_P(frame->object) :
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:345:30: error: ‘zend_execute_data {aka struct _zend_execute_data}’ has no member named ‘function_state’
frame->function_state.function->common.scope,
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:346:26: error: ‘zend_execute_data {aka struct _zend_execute_data}’ has no member named ‘function_state’
frame->function_state.function) :
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:347:22: error: ‘zend_execute_data {aka struct _zend_execute_data}’ has no member named ‘function_state’
frame->function_state.function->common.function_name;
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:350:18: error: ‘zend_execute_data {aka struct _zend_execute_data}’ has no member named ‘object’
if (frame->object) {
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:351:22: error: ‘zend_execute_data {aka struct _zend_execute_data}’ has no member named ‘function_state’
if (frame->function_state.function->common.scope) {
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:352:35: error: ‘zend_execute_data {aka struct _zend_execute_data}’ has no member named ‘function_state’
class_name = frame->function_state.function->common.scope->name;
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:354:17: error: unknown type name ‘zend_uint’
zend_uint class_name_len;
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:357:23: warning: implicit declaration of function ‘zend_get_object_classname’ [-Wimplicit-function-declaration]
dup = zend_get_object_classname(frame->object, &class_name, &class_name_len TSRMLS_CC);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:357:54: error: ‘zend_execute_data {aka struct _zend_execute_data}’ has no member named ‘object’
dup = zend_get_object_classname(frame->object, &class_name, &class_name_len TSRMLS_CC);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:364:25: error: ‘zend_execute_data {aka struct _zend_execute_data}’ has no member named ‘function_state’
} else if (frame->function_state.function->common.scope) {
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:365:31: error: ‘zend_execute_data {aka struct _zend_execute_data}’ has no member named ‘function_state’
class_name = frame->function_state.function->common.scope->name;
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c: In function ‘meminfo_escape_for_json’:
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:428:10: error: too many arguments to function ‘php_str_to_str’
s1 = php_str_to_str((char *) s, strlen(s), "\\", 1, "\\\\", 2, &new_str_len);
^
In file included from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:9:0:
/usr/include/php/20170718/ext/standard/php_string.h:135:21: note: declared here
PHPAPI zend_string *php_str_to_str(char *haystack, size_t length, char *needle,
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:428:8: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
s1 = php_str_to_str((char *) s, strlen(s), "\\", 1, "\\\\", 2, &new_str_len);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:429:10: error: too many arguments to function ‘php_str_to_str’
s2 = php_str_to_str(s1, strlen(s1), "\"", 1, "\\\"", 2, &new_str_len);
^
In file included from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:9:0:
/usr/include/php/20170718/ext/standard/php_string.h:135:21: note: declared here
PHPAPI zend_string *php_str_to_str(char *haystack, size_t length, char *needle,
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:429:8: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
s2 = php_str_to_str(s1, strlen(s1), "\"", 1, "\\\"", 2, &new_str_len);
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:437:14: error: too many arguments to function ‘php_str_to_str’
s3 = php_str_to_str(s2, strlen(s2), unescaped_char, 1, escaped_char, 6, &new_str_len);
^
In file included from /home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:9:0:
/usr/include/php/20170718/ext/standard/php_string.h:135:21: note: declared here
PHPAPI zend_string *php_str_to_str(char *haystack, size_t length, char *needle,
^
/home/dnd-von/Datas/projects/aelpim-mev/php-meminfo/extension/php5/meminfo.c:437:12: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
s3 = php_str_to_str(s2, strlen(s2), unescaped_char, 1, escaped_char, 6, &new_str_len);
^
Makefile:193: recipe for target 'meminfo.lo' failed
make: *** [meminfo.lo] Error 1
And I have no idea how to fix this :/
The ./configure --enable-meminfo command works fine btw
Ok I figured. I needed to add --with-php-config=/usr/bin/php-config5.6 to the ./configure command.
I used the correct php version but somehow it took another one.
The install works perfectly on the php7 folder but when it comes to php5, the make gives a lot of errors :
And I have no idea how to fix this :/
The
./configure --enable-meminfo
command works fine btw