|  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
 [2005-06-17 16:37 UTC] xhat at hotmail dot com
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.


Add a Patch

Pull Requests

Add a Pull Request


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=''>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=''>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]
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

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-2023 The PHP Group
All rights reserved.
Last updated: Mon Mar 20 16:03:45 2023 UTC