|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
4 + 11 = ?
Subscribe to this entry?

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

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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-05-22 08:58 UTC] zeev
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Sep 27 09:03:41 2022 UTC