php.net |  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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: linusnorton at gmail dot com
New email:
PHP Version: OS:

 

 [2011-02-10 15:34 UTC] linusnorton at gmail dot com
Description:
------------
Using fopen to open a sftp connection with no filename specified causes a 
segmentation fault.

Test script:
---------------
<?php

fopen("ssh2.sftp://user:pass@address:port","w");

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

Expected result:
----------------
Won't make it.

Actual result:
--------------
Segmentation fault

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-10 15:37 UTC] pajoye@php.net
-Status: Open +Status: Bogus
 [2011-02-10 15:37 UTC] pajoye@php.net
Please report ssh2 bugs at http://pecl.php.net/ssh2

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: Wed Oct 16 01:01:28 2024 UTC