|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #77650 Release a version of pecl/ssh2 that builds on PHP 7.3
Submitted: 2019-02-22 00:08 UTC Modified: 2019-11-27 09:42 UTC
Avg. Score:4.6 ± 0.6
Reproduced:22 of 22 (100.0%)
Same Version:20 (90.9%)
Same OS:8 (36.4%)
From: Assigned: cmb (profile)
Status: Closed Package: ssh2 (PECL)
PHP Version: 7.3.2 OS: n/a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2019-02-22 00:08 UTC]
The latest release of the ssh2 extension (1.1.2, released in 2017) doesn’t build on PHP 7.3, but it looks like there are commits in the master branch that fix this. I’ve confirmed, and I’m able to build the latest state of master (79371dc) on PHP 7.3.

Please release a new version of the extension for PHP 7.3.


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-04-24 23:07 UTC] goldorakhong at gmail dot com
I've postponed the migration of my dev environment for months after a few attempts because of this,
Thanks to Ramsey, I found the sources that can be compiled for 7.3, just before I give up once again.

P.S., for people looking a solution with a search engine (which I couldn't find myself):

If you're stuck with compiling errors like:

error: invalid operands to binary expression ('zend_string' (aka 'struct _zend_string') and 'int')


warning: incompatible pointer types assigning to 'char *' from 'zend_string *' (aka 'struct _zend_string *')

you will be able to install the extension for PHP7.3 using a recent snapshot of the source code that can be found here:;a=summary
 [2019-05-29 13:48 UTC] dasteph at gmail dot com
I could just reproduce:

docker run php:7.3 bash -c "apt-get update && apt-get -y install libssh2-1-dev && pecl install ssh2-1.1.2"
=> Makefile:196: recipe for target 'ssh2_fopen_wrappers.lo' failed
make: *** [ssh2_fopen_wrappers.lo] Error 1
ERROR: `make' failed
 [2019-07-18 11:58 UTC] thephilosoft at gmail dot com
The following pull request has been associated:

Patch Name: Remove inline from php_ssh2_sftp_attr2ssb
On GitHub:
 [2019-11-27 09:42 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2019-11-27 09:42 UTC]
ssh2 1.2 is compatible with PHP 7.3+, so this ticket can be
closed.  Note that the download link does not work currently[1],
and that this is not a stable version[2].

[1] <>
[2] <>
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Dec 03 12:01:27 2023 UTC