From: phpbugs at pureplan dot com Operating system: FreeBSD 5.3-RELEASE PHP version: 4.4.2 PHP Bug Type: *URL Functions Bug description: fopen fails after 2200 VHOST entries
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. -- Edit bug report at http://bugs.php.net/?id=37411&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37411&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37411&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37411&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37411&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37411&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37411&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37411&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37411&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37411&r=support Expected behavior: http://bugs.php.net/fix.php?id=37411&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37411&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37411&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37411&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37411&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37411&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37411&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37411&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37411&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37411&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37411&r=mysqlcfg