php.net |  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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: phpbugs at pureplan dot com
New email:
PHP Version: OS:

 

 [2006-05-11 18:39 UTC] phpbugs at pureplan dot com
Description:
------------
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.

; PHP INI FILE IS SET TO ON
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/website.com/".

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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-11 18:47 UTC] tony2001@php.net
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-2021 The PHP Group
All rights reserved.
Last updated: Sat Jul 31 18:01:24 2021 UTC