php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33385 URL includes fail when Temp dir too large
Submitted: 2005-06-17 16:37 UTC Modified: 2005-06-17 18:19 UTC
From: xhat at hotmail dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.3.0 OS: Win2000 SP4
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: xhat at hotmail dot com
New email:
PHP Version: OS:

 

 [2005-06-17 16:37 UTC] xhat at hotmail dot com
Description:
------------
Our actual PHP version is 4.3.0, but that was not an option in the drop down.  However, as many installs of 4.3.0 may still be out there, I thought this might be a useful bug report anyway.

Our configuration allowed URL includes, which worked flawlessly for (literally) years.  Then one day, it seemingly arbitrarily quit working.  Though the max file size for the temp dir was not met, nonetheless PHP quit using URL includes.  After clearing the TEMP dir, everything returned to normal operation.

Reproduce code:
---------------
No code necessary.

Expected result:
----------------
The includes to work.

Actual result:
--------------
The includes failed.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-17 16:43 UTC] xhat at hotmail dot com
This is to clarify the original description.  

The fix was to clear the TEMP dir.  We speculate that the large number of files in the dir (196mb), while not exceeding the max size set on the machine, nonetheless exceeded (perhaps) the max numbering limit set by php in order to create a new temp file.  Since the includes problem only affected URL includes (i.e. a web page request), it made sense that something (either PHP or Win or IIS) was failing to create a new temp file.  Thus the include failed.

For clarity, the error message from PHP was this:

[17-Jun-2005 10:26:35] PHP Warning:  printtopside(/mypath/header.shtml) [<a href='http://www.php.net/function.printtopside'>function.printtopside</a>]: failed to create stream: No such file or directory in D:\mypath\common.php on line 17
[17-Jun-2005 10:26:35] PHP Warning:  printtopside() [<a href='http://www.php.net/function.printtopside'>function.printtopside</a>]: Failed opening /mypath/header.shtml' for inclusion (include_path='.;c:\php4\pear') in D:\mypath\common.php on line 17
 [2005-06-17 18:19 UTC] sniper@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC