|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2020-12-02 09:40 UTC] shop1 at mokraemer dot de
Description:
------------
Some compile issues arise with compiling this extension for php8:
Some compile issues arise with compiling this extension for php8:
ssh2.c:49:2: warning: implicit declaration of function 'ZEND_ARG_PASS_INFO'; did you mean 'ZEND_ARG_OBJ_INFO'? [-Wimplicit-function-declaration]
49 | ZEND_ARG_PASS_INFO(1)
| ^~~~~~~~~~~~~~~~~~
| ZEND_ARG_OBJ_INFO
ssh2.c:49:2: warning: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
ssh2.c:49:2: note: (near initialization for 'php_ssh2_first_arg_force_ref[1].name')
ssh2.c:49:2: error: initializer element is not constant
ssh2.c:49:2: note: (near initialization for 'php_ssh2_first_arg_force_ref[1].name')
ssh2.c: In function 'php_ssh2_debug_cb':
ssh2.c:103:17: warning: implicit declaration of function 'call_user_function_ex'; did you mean 'call_user_function'? [-Wimplicit-function-declaration]
103 | if (FAILURE == call_user_function_ex(NULL, NULL, data->disconnect_cb, NULL, 3, args, 0, NULL)) {
| ^~~~~~~~~~~~~~~~~~~~~
| call_user_function
ssh2.c: In function 'zif_ssh2_disconnect':
ssh2.c:443:6: error: void value not ignored as it ought to be
443 | if (zend_list_close(Z_RES_P(zsession)) != SUCCESS) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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')
443 | if (zend_list_close(Z_RES_P(zsession)) != SUCCESS) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~
| |
| void
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 22:00:02 2025 UTC |
I have the same issue. Here's a Dockerfile that reproduces the issue: FROM php:8.0 RUN apt-get update \ && apt-get -y install libgmp-dev libmcrypt-dev libssh2-1 libssh2-1-dev \ && pecl install mcrypt ssh2-1.2 \ && docker-php-ext-install gmp bcmath \ && docker-php-ext-enable mcrypt ssh2