php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10635 fopen
Submitted: 2001-05-03 11:28 UTC Modified: 2001-05-03 14:32 UTC
From: jhurshman at rocketmail dot com Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.0.5 OS: Win2000 Advanced
Private report: No CVE-ID: None
 [2001-05-03 11:28 UTC] jhurshman at rocketmail dot com
I just upgraded one of my servers to 4.0.5, and am having a problem where any attempt to fopen a PHP file on that server via HTTP will fail.

From another (4.0.4pl1 on Unix) PHP server if I try the following code:

$handle = fopen("http://405host/phpinfo.php", "r");

I get the following error (and fopen returns false):

Warning: fopen("http://405host/phpinfo.php","r") - Inappropriate ioctl for device in /path/read.php on line 8

If I try the same code from the 4.0.5 server, or from a 4.0.4pl1-on-NT server, fopen returns false with the following error message:

Warning: fopen("http://405host/phpinfo.php","r") - No error in E:\Inetpub\wwwroot\read.php on line 8

If I try the same code and attempt to open a plain HTML file or an ASP file, everything works fine. It's only when trying to open a PHP file that these mysterious errors occur.

I also have a ASP component that opens an HTTP connection to a URL and prints the returned HTML. This component also can no longer access any PHP files on the 4.0.5 server.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-03 14:32 UTC] jhurshman at rocketmail dot com
I have solved the problem. It was not a bug, but rather a permission issue on the php executables.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 09:01:28 2024 UTC