php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #386 php3_fopen_url_wrapper segfaults on non-directory error
Submitted: 1998-05-18 17:01 UTC Modified: 1998-05-22 08:58 UTC
From: torben at coastnet dot com Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0 Latest CVS OS: Linux 2.0.33 Slackware
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: torben at coastnet dot com
New email:
PHP Version: OS:

 

 [1998-05-18 17:01 UTC] torben at coastnet dot com
php3_fopen_url_wrapper() segfaults at line 630 on an 
invalid ftp url:

<?php
if ( $fp = fopen( "ftp://localhost", "r" ) ) {
   fpassthru( $fp );
} else {
   echo "No ftp connection opened.\n";
}
?>

This segfaults instead of printing the 'not a directory'
warning; checking that resource->path exists fixes it.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-05-22 08:58 UTC] zeev
Fixed
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Dec 16 00:01:26 2019 UTC