|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2020-12-02 10:00 UTC] shop1 at mokraemer dot de
Description:
------------
some compile issues, e.g.
xdiff.c:41:6: warning: implicit declaration of function 'ZEND_ARG_PASS_INFO'; did you mean 'ZEND_ARG_OBJ_INFO'? [-Wimplicit-function-declaration]
41 | ZEND_ARG_PASS_INFO(0)
| ^~~~~~~~~~~~~~~~~~
| ZEND_ARG_OBJ_INFO
xdiff.c:41:6: warning: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
xdiff.c:41:6: note: (near initialization for 'xdiff_arg_force_ref[1].name')
xdiff.c:41:6: error: initializer element is not constant
xdiff.c:41:6: note: (near initialization for 'xdiff_arg_force_ref[1].name')
xdiff.c:42:6: error: expected '}' before 'ZEND_ARG_PASS_INFO'
42 | ZEND_ARG_PASS_INFO(0)
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/main/php.h:35,
from xdiff.c:25:
/usr/include/php/Zend/zend_API.h:168:47: note: to match this '{'
168 | static const zend_internal_arg_info name[] = { \
| ^
/usr/include/php/Zend/zend_API.h:171:2: note: in expansion of macro 'ZEND_BEGIN_ARG_INFO_EX'
171 | ZEND_BEGIN_ARG_INFO_EX(name, {}, ZEND_RETURN_VALUE, -1)
| ^~~~~~~~~~~~~~~~~~~~~~
xdiff.c:40:2: note: in expansion of macro 'ZEND_BEGIN_ARG_INFO'
40 | ZEND_BEGIN_ARG_INFO(xdiff_arg_force_ref, 0)
| ^~~~~~~~~~~~~~~~~~~
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 07:00:01 2025 UTC |
The same thing happens with the ssh2 package: /tmp/pear/temp/ssh2/ssh2.c:49:2: warning: implicit declaration of function 'ZEND_ARG_PASS_INFO'; did you mean 'ZEND_ARG_OBJ_INFO'? [-Wimplicit-function-declaration] ZEND_ARG_PASS_INFO(1) ^~~~~~~~~~~~~~~~~~ ZEND_ARG_OBJ_INFO /tmp/pear/temp/ssh2/ssh2.c:49:2: warning: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] /tmp/pear/temp/ssh2/ssh2.c:49:2: note: (near initialization for 'php_ssh2_first_arg_force_ref[1].name') /tmp/pear/temp/ssh2/ssh2.c:49:2: error: initializer element is not constant /tmp/pear/temp/ssh2/ssh2.c:49:2: note: (near initialization for 'php_ssh2_first_arg_force_ref[1].name') /tmp/pear/temp/ssh2/ssh2.c: In function 'php_ssh2_debug_cb': /tmp/pear/temp/ssh2/ssh2.c:103:17: warning: implicit declaration of function 'call_user_function_ex'; did you mean 'call_user_function'? [-Wimplicit-function-declaration] if (FAILURE == call_user_function_ex(NULL, NULL, data->disconnect_cb, NULL, 3, args, 0, NULL)) { ^~~~~~~~~~~~~~~~~~~~~ call_user_function /tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_disconnect': /tmp/pear/temp/ssh2/ssh2.c:443:6: error: void value not ignored as it ought to be if (zend_list_close(Z_RES_P(zsession)) != SUCCESS) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/ssh2/ssh2.c:443:41: error: invalid operands to binary != (have 'const zend_internal_arg_info[1]' {aka 'const struct _zend_internal_arg_info[1]'} and 'int') if (zend_list_close(Z_RES_P(zsession)) != SUCCESS) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~