#19051 [Opn->Csd]: fopen() fails with "http" or "https" URL as file descriptor...

From: Date: Sat, 24 Aug 2002 16:14:50 +0000
Subject: #19051 [Opn->Csd]: fopen() fails with "http" or "https" URL as file descriptor...
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17764@lists.php.net to get a copy of this message
ID: 19051 Updated by: iliaa@php.net Reported By: javakel@12dollaraccess.com -Status: Open +Status: Closed Bug Type: Filesystem function related Operating System: Solaris 9 PHP Version: 4.2.2 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Ability to open files over https:// is ONLY avaliable in version 4.3.0 and would only work if you had OpenSSL support compiled into PHP. Previous Comments: ------------------------------------------------------------------------ [2002-08-24 11:28:18] javakel@12dollaraccess.com update on this issue: using the listed CVS snapshot, fopen() is better, but not completely fixed... here's the breakdown for the snap: fopen("http://mywebsite/mydir/myfile.txt", "r") now SUCCEEDS! fopen("https://mywebsite/mydir/myfile.txt", "r") still FAILS! fopen("/disk2/myfiles/myfile.txt", "r") still SUCCEEDS! almost there guys! ;-) best. hive_slave ------------------------------------------------------------------------ [2002-08-22 14:46:26] sander@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip ------------------------------------------------------------------------ [2002-08-22 12:00:05] javakel@12dollaraccess.com problem with fopen() on Solaris 9 running PHP4.2.2: fopen() fails to open a file on the file system if said file is referenced with a URL, i.e.: fopen("http://myserver/myfile.txt", "r") FAILS! fopen("https://myserver/myfile.txt", "r") FAILS! fopen() functions as expected when using non-URL, full path names, i.e.: fopen("/export/home/myfiles/myfile.txt", "r") SUCCESS! fopen() is obviously having some issues in 4.2.2, as earlier versions of PHP's fopen() function have had no problem accessing files on the file system via a URL... it should be noted, however, that fopen() is notorious for being broken in various PHP versions/distributions... maybe the problem is with Solaris9? anyone have any ideas on this one? best. hive_slave ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19051&edit=1

« previous php.bugs (#17764) next »