-
-
Save ondrejmirtes/78567d3c26c5da67a7060ce6725087a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php7 master $ make | |
/bin/sh /Users/ondrej/Downloads/php-meminfo/extension/php7/libtool --mode=compile cc -I. -I/Users/ondrej/Downloads/php-meminfo/extension/php7 -DPHP_ATOM_INC -I/Users/ondrej/Downloads/php-meminfo/extension/php7/include -I/Users/ondrej/Downloads/php-meminfo/extension/php7/main -I/Users/ondrej/Downloads/php-meminfo/extension/php7 -I/usr/local/Cellar/php/7.4.8/include/php -I/usr/local/Cellar/php/7.4.8/include/php/main -I/usr/local/Cellar/php/7.4.8/include/php/TSRM -I/usr/local/Cellar/php/7.4.8/include/php/Zend -I/usr/local/Cellar/php/7.4.8/include/php/ext -I/usr/local/Cellar/php/7.4.8/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /Users/ondrej/Downloads/php-meminfo/extension/php7/meminfo.c -o meminfo.lo | |
mkdir .libs | |
cc -I. -I/Users/ondrej/Downloads/php-meminfo/extension/php7 -DPHP_ATOM_INC -I/Users/ondrej/Downloads/php-meminfo/extension/php7/include -I/Users/ondrej/Downloads/php-meminfo/extension/php7/main -I/Users/ondrej/Downloads/php-meminfo/extension/php7 -I/usr/local/Cellar/php/7.4.8/include/php -I/usr/local/Cellar/php/7.4.8/include/php/main -I/usr/local/Cellar/php/7.4.8/include/php/TSRM -I/usr/local/Cellar/php/7.4.8/include/php/Zend -I/usr/local/Cellar/php/7.4.8/include/php/ext -I/usr/local/Cellar/php/7.4.8/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /Users/ondrej/Downloads/php-meminfo/extension/php7/meminfo.c -fno-common -DPIC -o .libs/meminfo.o | |
/Users/ondrej/Downloads/php-meminfo/extension/php7/meminfo.c:61:73: warning: format specifies type 'int' | |
but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] | |
php_stream_printf(stream TSRMLS_CC, " \"memory_usage\" : %d,\n", zend_memory_usage(0)); | |
~~ ^~~~~~~~~~~~~~~~~~~~ | |
%zu | |
/Users/ondrej/Downloads/php-meminfo/extension/php7/meminfo.c:62:78: warning: format specifies type 'int' | |
but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] | |
php_stream_printf(stream TSRMLS_CC, " \"memory_usage_real\" : %d,\n", zend_memory_usage(1)); | |
~~ ^~~~~~~~~~~~~~~~~~~~ | |
%zu | |
/Users/ondrej/Downloads/php-meminfo/extension/php7/meminfo.c:63:78: warning: format specifies type 'int' | |
but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] | |
php_stream_printf(stream TSRMLS_CC, " \"peak_memory_usage\" : %d,\n", zend_memory_peak_usage(0)); | |
~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ | |
%zu | |
/Users/ondrej/Downloads/php-meminfo/extension/php7/meminfo.c:64:82: warning: format specifies type 'int' | |
but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] | |
...TSRMLS_CC, " \"peak_memory_usage_real\" : %d\n", zend_memory_peak_usage(1)); | |
~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ | |
%zu | |
/Users/ondrej/Downloads/php-meminfo/extension/php7/meminfo.c:135:26: error: no member named | |
'static_members_table' in 'struct _zend_class_entry'; did you mean 'static_members_table__ptr'? | |
if (class_entry->static_members_table) { | |
^~~~~~~~~~~~~~~~~~~~ | |
static_members_table__ptr | |
/usr/local/Cellar/php/7.4.8/include/php/Zend/zend.h:125:2: note: 'static_members_table__ptr' declared | |
here | |
ZEND_MAP_PTR_DEF(zval *, static_members_table); | |
^ | |
/usr/local/Cellar/php/7.4.8/include/php/Zend/zend_map_ptr.h:53:9: note: expanded from macro | |
'ZEND_MAP_PTR_DEF' | |
type * ZEND_MAP_PTR(name) | |
^ | |
/usr/local/Cellar/php/7.4.8/include/php/Zend/zend_map_ptr.h:51:2: note: expanded from macro | |
'ZEND_MAP_PTR' | |
ptr ## __ptr | |
^ | |
<scratch space>:16:1: note: expanded from here | |
static_members_table__ptr | |
^ | |
/Users/ondrej/Downloads/php-meminfo/extension/php7/meminfo.c:145:42: error: no member named | |
'static_members_table' in 'struct _zend_class_entry'; did you mean 'static_members_table__ptr'? | |
prop = &class_entry->static_members_table[prop_info->offset]; | |
^~~~~~~~~~~~~~~~~~~~ | |
static_members_table__ptr | |
/usr/local/Cellar/php/7.4.8/include/php/Zend/zend.h:125:2: note: 'static_members_table__ptr' declared | |
here | |
ZEND_MAP_PTR_DEF(zval *, static_members_table); | |
^ | |
/usr/local/Cellar/php/7.4.8/include/php/Zend/zend_map_ptr.h:53:9: note: expanded from macro | |
'ZEND_MAP_PTR_DEF' | |
type * ZEND_MAP_PTR(name) | |
^ | |
/usr/local/Cellar/php/7.4.8/include/php/Zend/zend_map_ptr.h:51:2: note: expanded from macro | |
'ZEND_MAP_PTR' | |
ptr ## __ptr | |
^ | |
<scratch space>:16:1: note: expanded from here | |
static_members_table__ptr | |
^ | |
/Users/ondrej/Downloads/php-meminfo/extension/php7/meminfo.c:145:26: warning: incompatible pointer types | |
assigning to 'zval *' (aka 'struct _zval_struct *') from 'zval **' (aka 'struct _zval_struct **'); | |
remove & [-Wincompatible-pointer-types] | |
prop = &class_entry->static_members_table[prop_info->offset]; | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Users/ondrej/Downloads/php-meminfo/extension/php7/meminfo.c:176:10: error: expected ';' after expression | |
ulong index; | |
^ | |
; | |
/Users/ondrej/Downloads/php-meminfo/extension/php7/meminfo.c:176:5: error: use of undeclared identifier | |
'ulong' | |
ulong index; | |
^ | |
/Users/ondrej/Downloads/php-meminfo/extension/php7/meminfo.c:176:11: warning: expression result unused | |
[-Wunused-value] | |
ulong index; | |
^~~~~ | |
/Users/ondrej/Downloads/php-meminfo/extension/php7/meminfo.c:182:60: warning: incompatible pointer types | |
passing 'char *(*)(const char *, int)' to parameter of type 'zend_ulong *' | |
(aka 'unsigned long long *') [-Wincompatible-pointer-types] | |
zend_hash_get_current_key_ex(p_symbol_table, &key, &index, &pos); | |
^~~~~~ | |
/usr/local/Cellar/php/7.4.8/include/php/Zend/zend_hash.h:234:117: note: passing argument to parameter | |
'num_index' here | |
...zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index... | |
^ | |
/Users/ondrej/Downloads/php-meminfo/extension/php7/meminfo.c:272:83: warning: format specifies type | |
'long' but the argument has type 'zend_ulong' (aka 'unsigned long long') [-Wformat] | |
php_stream_printf(stream TSRMLS_CC, " \"%ld\":\"%s\"", num_key, zval_id); | |
~~~ ^~~~~~~ | |
%llu | |
/Users/ondrej/Downloads/php-meminfo/extension/php7/meminfo.c:317:74: warning: format specifies type | |
'long' but the argument has type 'zend_ulong' (aka 'unsigned long long') [-Wformat] | |
php_stream_printf(stream TSRMLS_CC, " \"size\" : \"%ld\",\n", meminfo_get_element_size(zv)); | |
~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
%llu | |
/Users/ondrej/Downloads/php-meminfo/extension/php7/meminfo.c:358:22: warning: implicit declaration of | |
function 'Z_OBJDEBUG_P' is invalid in C99 [-Wimplicit-function-declaration] | |
properties = Z_OBJDEBUG_P(zv, is_temp); | |
^ | |
/Users/ondrej/Downloads/php-meminfo/extension/php7/meminfo.c:358:20: warning: incompatible integer to | |
pointer conversion assigning to 'HashTable *' (aka 'struct _zend_array *') from 'int' | |
[-Wint-conversion] | |
properties = Z_OBJDEBUG_P(zv, is_temp); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~ | |
11 warnings and 4 errors generated. | |
make: *** [meminfo.lo] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment