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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2022 The PHP Group
All rights reserved.
Last updated: Thu Jan 20 09:03:33 2022 UTC