#20274 [Ctl]: failed to create stream: Too many open files in Unknown on line

From: Date: Thu, 10 Apr 2003 19:02:19 +0000
Subject: #20274 [Ctl]: 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-37534@lists.php.net to get a copy of this message
ID: 20274 Updated by: thetaphi@php.net Reported By: fowler at csufresno dot edu Status: Critical Bug Type: iPlanet related Operating System: Solaris (all) PHP Version: 4CVS-2002-11-06 Assigned To: wez New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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>&nbsp;<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. ------------------------------------------------------------------------ [2003-03-23 09:34:00] thetaphi@php.net I think in your snapshot it was not included. The file main/streams.c should be 18.03.02 17:39 or later (version 1.125.2.42). At this time I suggest to use PHP under solaris in CGI mode. I will put a NSAPI plugin, that supports starting files with the PHP mime type as CGI (which is in iPlanet servers not possible). The NSAPI plugin can soon be downloaded from my website. ------------------------------------------------------------------------ [2003-03-21 13:32:33] fowler at csufresno dot edu Still seeing it also, but with the entire error message, not just the tail end of it. Built with php4-STABLE-200303181630. <br /> <b>Warning</b>: Unknown(/path/to/index.php): failed to open stream: Too many open files in <b>Unknown</b> on line <b>0</b><br /> <br /> ------------------------------------------------------------------------ [2003-03-21 03:10:16] thetaphi@php.net The error is not completely fixed: Now only the second line appears: <br /> <b>Warning</b>: (null)(): Failed opening '/pangaea/webserver/docs/index.php' for inclusion (include_path='.:/pangaea/PHP4/lib/php') in <b>Unknown</b> on line <b>0</b><br /> ------------------------------------------------------------------------ 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

« previous php.bugs (#37534) next »