|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37411 fopen fails after 2200 VHOST entries
Submitted: 2006-05-11 18:39 UTC Modified: 2006-05-11 18:47 UTC
From: phpbugs at pureplan dot com Assigned:
Status: Not a bug Package: *URL Functions
PHP Version: 4.4.2 OS: FreeBSD 5.3-RELEASE
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: phpbugs at pureplan dot com
New email:
PHP Version: OS:


 [2006-05-11 18:39 UTC] phpbugs at pureplan dot com
Pretty simple, fopen works great until with 2,199 vhosts in Apache, but as soon as we add that last one 2,200 fopen will not work anymore. I am not sure if it is server related, Apache related or PHP related but I would really like to know how to fix it.

allow_url_fopen = On

Reproduce code:
Setup a Apache server with 2,199 VHOST entries, test fopen, works great. Add one more entry at the bottom of your VHOST file and test fopen again.

To be more specific fopen FAILS only if you try opening with http://page... or ftp://.... you can still use a local path "/usr/local/apache/vhosts/".

Expected result:
FOPEN should work with 10,000 VHOSTS if not more.

Actual result:
when fopen starts to run the whole page comes out blank right at the fopen command.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-11 18:47 UTC]
If you try to search the bug DB you can find at least 20 reports about it.
It's fixed in CVS. Long time ago.
You have to wait for the next 4.4.x release or (I'd recommend that) upgrade to 5.1.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 06:01:31 2024 UTC