#20274 [Csd->Fbk]: failed to create stream: Too many open files in Unknown on line
From: sas@php.net Date: Fri, 02 May 2003 14:56:19 +0000 Subject: #20274 [Csd->Fbk]: failed to create stream: Too many open files in Unknown on line References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-38948@lists.php.net to get a copy of this message
ID: 20274
Updated by: sas@php.net
Reported By: fowler at csufresno dot edu
-Status: Closed
+Status: Feedback
Bug Type: iPlanet related
Operating System: Solaris (all)
PHP Version: 4CVS-2002-11-06
-Assigned To: wez
+Assigned To: sas
New Comment:
There is a patch available for the current PHP 4.3 CVS:
http://www.php.net/~sas/patch-lexer-no-stdio
This patch makes PHP use POSIX IO which alleviates the Solaris stdio
issue.
Please let me know whether it works for you.
Previous Comments:
------------------------------------------------------------------------
[2003-04-25 09:27:25] jay@php.net
For those having problems getting SFIO working on Solaris,
this worked for me (Solaris 8 SPARC)...
LIBS="-L/path/to/sfio/lib -lstdio-mt -lsfio-mt"
./configure....
SFIO is binary compatible with stdio, so you don't need to
include any SFIO headers. Also, be sure to compile SFIO as
a multithreaded library.
J
------------------------------------------------------------------------
[2003-04-25 05:40:44] wez@php.net
For PHP 4.3.x, you must link using the SFIO stdio replacement from
AT&T.
PHP 5 does not have this dependency itself, although some third party
libraries that use stdio may get bitten by the limit of 256 files; in
which case you should also link against the SFIO library.
------------------------------------------------------------------------
[2003-04-10 14:02:19] thetaphi@php.net
You are right. At this time the only way to fix this is by using the
CGI-mode with the NSAPI plugin from my website.
------------------------------------------------------------------------
[2003-04-09 15:07:19] fillmore at nrcan dot gc dot ca
We have been having these problems also.
I just installed php-4.3.2RC1.tar.gz to see if it helps,
and the site started failing again within a half hour.
I doubt that it's an open file limit in libc,
because the site had only 14 hits on .php URLs
before it started failing. Also, only two scripts were called, and
they don't open any files. Here's the code
in the most complicated of the two scripts:
<?
$x = 0;
while (list($key, $val) = each($ORFiles))
{
$x++;
echo '<font face="Arial, Helvetica, sans-serif">
<A HREF="../../html/tables/pdf/options/'.substr($val, 0, strpos($val,
"*")).'">'
.substr($val,strrpos($val,"*")+1).'</A></font> <img
SRC="../../gif/pdf.gif"
WIDTH="17" HEIGHT="17" ALT="pdf"><BR>';
}
?>
- Bob Fillmore
------------------------------------------------------------------------
[2003-03-25 03:15:36] thetaphi@php.net
The quick fix (have nothing to do with PHP4 itself):
http://www.thetaphi.de/php-ressources/
Status of this bug keeps "Critical" because it have to be solved,
because CGI mode of PHP is a lot slower than NSAPI mode.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/20274
--
Edit this bug report at http://bugs.php.net/?id=20274&edit=1
Thread (48 messages)
- #20274 [Opn->Fbk]: failed to create stream: Too many open files in Unknown on line
- #20274 [Fbk]: failed to create stream: Too many open files in Unknown on line
- #20274 [Com]: failed to create stream: Too many open files in Unknown on line
- #20274 [Com]: failed to create stream: Too many open files in Unknown on line
- #20274 [Fbk->NoF]: failed to create stream: Too many open files in Unknown on line
- #20274 [NoF->Opn]: failed to create stream: Too many open files in Unknown on line
- #20274 [Opn->Fbk]: failed to create stream: Too many open files in Unknown on line
- #20274 [Com]: failed to create stream: Too many open files in Unknown on line
- #20274 [Com]: failed to create stream: Too many open files in Unknown on line
- #20274 [Fbk]: failed to create stream: Too many open files in Unknown on line
- #20274 [Com]: failed to create stream: Too many open files in Unknown on line
- #20274 [Fbk]: failed to create stream: Too many open files in Unknown on line
- #20274 [Fbk->NoF]: failed to create stream: Too many open files in Unknown on line
- #20274 [NoF->Opn]: failed to create stream: Too many open files in Unknown on line
- #20274 [Com]: failed to create stream: Too many open files in Unknown on line
- #20274 [Com]: failed to create stream: Too many open files in Unknown on line
- #20274 [Com]: failed to create stream: Too many open files in Unknown on line
- #20274 [Com]: failed to create stream: Too many open files in Unknown on line
- #20274 [Com]: failed to create stream: Too many open files in Unknown on line
- #20274 [Com]: failed to create stream: Too many open files in Unknown on line
- #20274 [Opn->Csd]: failed to create stream: Too many open files in Unknown on line
- #20274 [Csd->Opn]: failed to create stream: Too many open files in Unknown on line
- #20274 [Opn->Asn]: failed to create stream: Too many open files in Unknown on line
- #20274 [Asn]: failed to create stream: Too many open files in Unknown on line
- #20274 [Asn]: failed to create stream: Too many open files in Unknown on line
- #20274 [Asn]: failed to create stream: Too many open files in Unknown on line
- #20274 [Asn]: failed to create stream: Too many open files in Unknown on line
- #20274 [Asn->Ctl]: failed to create stream: Too many open files in Unknown on line
- #20274 [Ctl->Fbk]: failed to create stream: Too many open files in Unknown on line
- #20274 [Com]: failed to create stream: Too many open files in Unknown on line
- #20274 [Fbk]: failed to create stream: Too many open files in Unknown on line
- #20274 [Fbk->Ctl]: failed to create stream: Too many open files in Unknown on line
- #20274 [Ctl]: failed to create stream: Too many open files in Unknown on line
- #20274 [Ctl]: failed to create stream: Too many open files in Unknown on line
- #20274 [Ctl]: failed to create stream: Too many open files in Unknown on line
- #20274 [Com]: failed to create stream: Too many open files in Unknown on line
- #20274 [Ctl]: failed to create stream: Too many open files in Unknown on line
- #20274 [Ctl->Csd]: failed to create stream: Too many open files in Unknown on line
- #20274 [Csd]: failed to create stream: Too many open files in Unknown on line
- #20274 [Csd->Fbk]: failed to create stream: Too many open files in Unknown on line
- #20274 [Fbk]: failed to create stream: Too many open files in Unknown on line
- #20274 [Com]: failed to create stream: Too many open files in Unknown on line
- #20274 [Fbk->Csd]: failed to create stream: Too many open files in Unknown on line
- #20274 [Csd->Opn]: failed to create stream: Too many open files in Unknown on line
- #20274 [Opn->Csd]: failed to create stream: Too many open files in Unknown on line
- #20274 [Csd]: failed to create stream: Too many open files in Unknown on line
- #20274 [Csd]: failed to create stream: Too many open files in Unknown on line
| « previous | php.bugs (#38948) | next » |
|---|