|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66314 segfault on connecting
Submitted: 2013-12-18 00:06 UTC Modified: -
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: yardenack at gmail dot com Assigned:
Status: Open Package: ssh2 (PECL)
PHP Version: 5.5.7 OS: Arch Linux
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:
From: yardenack at gmail dot com
New email:
PHP Version: OS:


 [2013-12-18 00:06 UTC] yardenack at gmail dot com
I've been using php-ssh2 on Arch Linux from within Wordpress, which lets you update over ssh/sftp like this: define('FS_METHOD','ssh2');

The AUR package is here:

Version 0.12 of this package does not work at all - it segfaults every time. Reverting the PKGBUILD 0.11.3 and rebuilding against current PHP versions does work.

Doing a git bisect, I've narrowed down the problematic commit to this:;a=commitdiff;h=8d73279c

I'm not a C or PHP expert. I don't know why this commit breaks it, but I do know that reverting it makes master/head work again, as demonstrated here:

An updated PKGBUILD for Arch also demonstrates this fix:

I understand 8d73279c was itself a bugfix (to recognize files with "#" in their path), so the best solution will take further examination.


fix-segfault (last revision 2013-12-18 00:06 UTC by yardenack at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Jun 07 19:03:43 2023 UTC