|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53983 fopen sftp causes segmentation fault
Submitted: 2011-02-10 15:34 UTC Modified: 2011-02-10 15:39 UTC
From: linusnorton at gmail dot com Assigned:
Status: Not a bug Package: Streams related
PHP Version: 5.3.5 OS: Linux (Ubuntu 10.10)
Private report: No CVE-ID: None
 [2011-02-10 15:34 UTC] linusnorton at gmail dot com
Using fopen to open a sftp connection with no filename specified causes a 
segmentation fault.

Test script:


die("Won't make it.");

Expected result:
Won't make it.

Actual result:
Segmentation fault


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-10 15:37 UTC]
-Status: Open +Status: Bogus
 [2011-02-10 15:37 UTC]
Please report ssh2 bugs at

You can alternatively try using CURL as it supports SFTP as well (if built with 
libssh2 support)
 [2011-02-10 15:39 UTC] linusnorton at gmail dot com
Sorry, I'm not that familiar with CURL could you give me an equivalent command?
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 12:01:29 2024 UTC