|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-10-27 22:31 UTC] daniel at polkabrothers dot com
Description:
------------
When opening a lot (3000 in this case) files under Mac OS X,
network connectivity disappears.
This has been tested under Linux 2.6, and works fine.
Reproduce code:
---------------
$fp = array();
for($x=0;$x<3000;$x++) {
$fp[$x] = fopen("/tmp/$x", "w");
}
$url_fp = fopen("http://www.google.com", "r");
var_dump(fread($url_fp, 1500));
Expected result:
----------------
To get the first 1500 bytes from www.google.com
Actual result:
--------------
string(0) ""
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 21:00:01 2025 UTC |
Have now done a bit more testing, and it only happens if you try to open more than 1017 files and then try to open a url. Have tried opening urls with fopen(), curl_* and exec ("wget"). Same end-result, they don't connect. PHP doesn't generate any error messages when trying to open using fopen(). When trying it with the curl functions, curl returns with "couldn't connect" but if you turn on more debugging it comes back with "Unknown error: 0". When trying to exec() wget it stops as soon as it gets a connection and is about to output "200 OK" (i have read the how to report bugs, but can't find what i'm missing to include)