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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sat Dec 21 11:01:30 2024 UTC