#20274 [Asn]: failed to create stream: Too many open files in Unknown on line
| From: | thetaphi@php.net | Date: | Sat, 08 Mar 2003 20:41:41 +0000 |
| Subject: | #20274 [Asn]: 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-35129@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: Assigned
Bug Type: iPlanet related
Operating System: Solaris (all)
PHP Version: 4CVS-2002-11-06
Assigned To: thetaphi
New Comment:
Also the perl programmers have the same problem:
the version of perl i mentioned before that I had
compiled myself was on an AIX box so it wasn't a fair
test, because when I compiled perl on the sun box
myself I still had the 256 open file limit. I started
poking through perl documentation and found this in
README.solaris
The stdio(3C) manpage notes that only 255 files may be
opened using
fopen(), and only file descriptors 0 through 255 can
be used in a
stream. Since perl calls open() and then fdopen(3C)
with the
resulting file descriptor, perl is limited to 255
simultaneous open
files.
----
So we should choose one of the following possibilities:
a) use only open() and not fopen(), which should be possible beacuse
later in streams.c only the read file descriptor is obtained with
fileno(). Why also use fopen?
b) in solaris use parts of glibc which handles fopen-streams.
Previous Comments:
------------------------------------------------------------------------
[2003-03-08 06:25:15] thetaphi@php.net
I will test it with PHP5 on out solaris box.
------------------------------------------------------------------------
[2003-03-07 20:01:28] wez@php.net
It's in PHP_4_3 branch.
The problem does not apply to PHP5, as the ZE2 no longer needs to
cast/clone streams.
------------------------------------------------------------------------
[2003-03-07 11:52:36] thetaphi@php.net
wez@thetaphi.net: The fix you explained: Is it also in the 4.3 CVS? Or
only in newest one?
------------------------------------------------------------------------
[2003-03-07 10:36:40] thetaphi@php.net
The problem is still in the CVS. I have the problem with my own
development webserver (Solaris 2.9, SunOne Webserver 6.0 newest one
SP5), too. At this time I am looking for a fix. Increasing the file
descriptor limit does not help, too.
I compile at this time with gcc. I will check if problem with Forte7
still there... due to Sun recommends Forte7 for NSAPI.
------------------------------------------------------------------------
[2003-02-25 08:47:55] wez@php.net
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
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