|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2020-08-13 09:56 UTC] cmb@php.net
[2021-01-14 12:59 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2021-01-14 12:59 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 23:00:01 2025 UTC |
Description: ------------ We are getting "segmentation fault" error when trying to use file_get_contents() + stream context with ssh2.sftp wrapper. It works with ssh2_connect() + ssh2_sftp() functions, but not with creating the stream context. PHP: v7.4 ssh2 package: v1.2 Tested with Ubuntu and opensuse OSes, same result. Test script: --------------- $options = [ "ssh2" => [ "username" => "user", "pubkey_file" => 'path/to/key.pub', "privkey_file" => 'path/to/key' ] ]; $context = stream_context_create($options, []); file_get_contents('ssh2.sftp://domain.com/path/to/file', false, $context); Expected result: ---------------- File content Actual result: -------------- segmentation fault error