php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58132 php fastcgi doesn't close files with APC activated
Submitted: 2008-03-30 09:02 UTC Modified: 2008-05-14 20:01 UTC
From: fm at hwmails dot de Assigned: gopalv (profile)
Status: Closed Package: APC (PECL)
PHP Version: 3.0.18 (php 5.2.5) OS: *
Private report: No CVE-ID: None
 [2008-03-30 09:02 UTC] fm at hwmails dot de
Description:
------------
I'm using APC together with a lighttpd server and fastcgi.

I've upgraded to v3.0.18 from v3.0.14 and experienced problems with the open file limit of my operating system.

It seems as php with APC activated doesen't close the files it has accessed. I've attached two outputs of lsof after a while, one with APC activated and the other with APC disabled.

My Configuration is simple:
extension="apc.so"
apc.shm_size = 65
apc.file_update_protection = 5
apc.stat = 1
apc.enabled = 1


Reproduce code:
---------------
lsof -p PID of FastCGI process

Expected result:
----------------
COMMAND    PID     USER   FD   TYPE             DEVICE    SIZE     NODE NAME
php5-cgi 11634 www-data  cwd    DIR                8,2   20480 56935218 /usr/bin
php5-cgi 11634 www-data  rtd    DIR                8,2    4096        2 /
php5-cgi 11634 www-data  txt    REG                8,2 5485968 56936562 /usr/bin/php5-cgi
php5-cgi 11634 www-data  mem    REG                0,0                0 [heap] (stat: No such file or directory)
php5-cgi 11634 www-data  mem    REG                8,2   97928 13500577 /lib/ld-2.3.6.so
php5-cgi 11634 www-data  mem    REG                8,2   22656 13500653 /lib/libcrypt-2.3.6.so
php5-cgi 11634 www-data  mem    REG                8,2   90024 56870460 /usr/lib/libz.so.1.2.3
php5-cgi 11634 www-data  mem    REG                8,2  291816 56870490 /usr/lib/libssl.so.0.9.8
php5-cgi 11634 www-data  mem    REG                8,2  151240 56873013 /usr/lib/libpcre.so.3.12.0
php5-cgi 11634 www-data  mem    REG                8,2 1077328 56869208 /usr/lib/libdb-4.4.so
php5-cgi 11634 www-data  mem    REG                8,2   62568 13500595 /lib/libbz2.so.1.0.3
php5-cgi 11634 www-data  mem    REG                8,2   76600 13500582 /lib/libresolv-2.3.6.so
php5-cgi 11634 www-data  mem    REG                8,2  531600 13500618 /lib/libm-2.3.6.so
php5-cgi 11634 www-data  mem    REG                8,2   10392 13500580 /lib/libdl-2.3.6.so
php5-cgi 11634 www-data  mem    REG                8,2   85880 13500544 /lib/libnsl-2.3.6.so
php5-cgi 11634 www-data  mem    REG                8,2  120200 56869053 /usr/lib/libgssapi_krb5.so.2.2
php5-cgi 11634 www-data  mem    REG                8,2  544288 56873017 /usr/lib/libkrb5.so.3.2
php5-cgi 11634 www-data  mem    REG                8,2  146112 56869050 /usr/lib/libk5crypto.so.3.0
php5-cgi 11634 www-data  mem    REG                8,2    7984 13500419 /lib/libcom_err.so.2.1
php5-cgi 11634 www-data  mem    REG                8,2 1298864 56872035 /usr/lib/libxml2.so.2.6.27
php5-cgi 11634 www-data  mem    REG                8,2 1286104 13500604 /lib/libc-2.3.6.so
php5-cgi 11634 www-data  mem    REG                8,2 1510344 56870529 /usr/lib/libcrypto.so.0.9.8
php5-cgi 11634 www-data  mem    REG                8,2   15840 56869001 /usr/lib/libkrb5support.so.0.0
php5-cgi 11634 www-data  mem    REG                8,2  473690 65224906 /usr/lib/php5/20060613/apc.so
php5-cgi 11634 www-data  mem    REG                8,2   35752 13500585 /lib/librt-2.3.6.so
php5-cgi 11634 www-data  mem    REG                8,2   96493 13500597 /lib/libpthread-2.3.6.so
php5-cgi 11634 www-data  mem    REG                8,2  131096 56951584 /usr/lib/php5/20060613/gd.so
php5-cgi 11634 www-data  mem    REG                8,2  260648 56874860 /usr/lib/libgd.so.2.0.33
php5-cgi 11634 www-data  mem    REG                8,2  278616 56874865 /usr/lib/libt1.so.5.1.0
php5-cgi 11634 www-data  mem    REG                8,2  491672 56871970 /usr/lib/libfreetype.so.6.3.10
php5-cgi 11634 www-data  mem    REG                8,2 1084680 56874831 /usr/lib/libX11.so.6.2.0
php5-cgi 11634 www-data  mem    REG                8,2   66936 56874858 /usr/lib/libXpm.so.4.11.0
php5-cgi 11634 www-data  mem    REG                8,2  145000 56874820 /usr/lib/libpng12.so.0.15.0
php5-cgi 11634 www-data  mem    REG                8,2  139216 56874818 /usr/lib/libjpeg.so.62.0.0
php5-cgi 11634 www-data  mem    REG                8,2  210544 56874851 /usr/lib/libfontconfig.so.1.2.0
php5-cgi 11634 www-data  mem    REG                8,2    9968 56874827 /usr/lib/libXau.so.6.0.0
php5-cgi 11634 www-data  mem    REG                8,2   19848 56874829 /usr/lib/libXdmcp.so.6.0.0
php5-cgi 11634 www-data  mem    REG                8,2  140672 56874848 /usr/lib/libexpat.so.1.0.0
php5-cgi 11634 www-data  mem    REG                8,2   37240 56951583 /usr/lib/php5/20060613/mcrypt.so
php5-cgi 11634 www-data  mem    REG                8,2  174680 56874863 /usr/lib/libmcrypt.so.4.4.7
php5-cgi 11634 www-data  mem    REG                8,2   28424 56873741 /usr/lib/libltdl.so.3.1.4
php5-cgi 11634 www-data  mem    REG                8,2   54040 56951581 /usr/lib/php5/20060613/mysql.so
php5-cgi 11634 www-data  mem    REG                8,2 2092560 56874874 /usr/lib/libmysqlclient.so.15.0.0
php5-cgi 11634 www-data  mem    REG                8,2  119320 56951580 /usr/lib/php5/20060613/mysqli.so
php5-cgi 11634 www-data  mem    REG                8,2   93976 56951585 /usr/lib/php5/20060613/pdo.so
php5-cgi 11634 www-data  mem    REG                8,2   28544 56951582 /usr/lib/php5/20060613/pdo_mysql.so
php5-cgi 11634 www-data  mem    REG                8,2   43368 13500589 /lib/libnss_files-2.3.6.so
php5-cgi 11634 www-data    0u  unix 0xffff8101cf5f4180           637795 /tmp/php.socket-0
php5-cgi 11634 www-data    1w   CHR                1,3              877 /dev/null
php5-cgi 11634 www-data    2u   CHR              136,0                2 /dev/pts/0


Actual result:
--------------
COMMAND    PID     USER   FD   TYPE             DEVICE    SIZE     NODE NAME
php5-cgi 12081 www-data  cwd    DIR                8,2    4096 60506429 /var/www/wop/forum
php5-cgi 12081 www-data  rtd    DIR                8,2    4096        2 /
php5-cgi 12081 www-data  txt    REG                8,2 5485968 56936562 /usr/bin/php5-cgi
php5-cgi 12081 www-data  mem    REG                0,0                0 [heap] (stat: No such file or directory)
php5-cgi 12081 www-data  mem    REG                8,2   97928 13500577 /lib/ld-2.3.6.so
php5-cgi 12081 www-data  mem    REG                8,2   22656 13500653 /lib/libcrypt-2.3.6.so
php5-cgi 12081 www-data  mem    REG                8,2   90024 56870460 /usr/lib/libz.so.1.2.3
php5-cgi 12081 www-data  mem    REG                8,2  291816 56870490 /usr/lib/libssl.so.0.9.8
php5-cgi 12081 www-data  mem    REG                8,2  151240 56873013 /usr/lib/libpcre.so.3.12.0
php5-cgi 12081 www-data  mem    REG                8,2 1077328 56869208 /usr/lib/libdb-4.4.so
php5-cgi 12081 www-data  mem    REG                8,2   62568 13500595 /lib/libbz2.so.1.0.3
php5-cgi 12081 www-data  mem    REG                8,2   76600 13500582 /lib/libresolv-2.3.6.so
php5-cgi 12081 www-data  mem    REG                8,2  531600 13500618 /lib/libm-2.3.6.so
php5-cgi 12081 www-data  mem    REG                8,2   10392 13500580 /lib/libdl-2.3.6.so
php5-cgi 12081 www-data  mem    REG                8,2   85880 13500544 /lib/libnsl-2.3.6.so
php5-cgi 12081 www-data  mem    REG                8,2  120200 56869053 /usr/lib/libgssapi_krb5.so.2.2
php5-cgi 12081 www-data  mem    REG                8,2  544288 56873017 /usr/lib/libkrb5.so.3.2
php5-cgi 12081 www-data  mem    REG                8,2  146112 56869050 /usr/lib/libk5crypto.so.3.0
php5-cgi 12081 www-data  mem    REG                8,2    7984 13500419 /lib/libcom_err.so.2.1
php5-cgi 12081 www-data  mem    REG                8,2 1298864 56872035 /usr/lib/libxml2.so.2.6.27
php5-cgi 12081 www-data  mem    REG                8,2 1286104 13500604 /lib/libc-2.3.6.so
php5-cgi 12081 www-data  mem    REG                8,2 1510344 56870529 /usr/lib/libcrypto.so.0.9.8
php5-cgi 12081 www-data  mem    REG                8,2   15840 56869001 /usr/lib/libkrb5support.so.0.0
php5-cgi 12081 www-data  mem    REG                8,2  473690 65224906 /usr/lib/php5/20060613/apc.so
php5-cgi 12081 www-data  mem    REG                8,2   35752 13500585 /lib/librt-2.3.6.so
php5-cgi 12081 www-data  mem    REG                8,2   96493 13500597 /lib/libpthread-2.3.6.so
php5-cgi 12081 www-data  mem    REG                8,2  131096 56951584 /usr/lib/php5/20060613/gd.so
php5-cgi 12081 www-data  mem    REG                8,2  260648 56874860 /usr/lib/libgd.so.2.0.33
php5-cgi 12081 www-data  mem    REG                8,2  278616 56874865 /usr/lib/libt1.so.5.1.0
php5-cgi 12081 www-data  mem    REG                8,2  491672 56871970 /usr/lib/libfreetype.so.6.3.10
php5-cgi 12081 www-data  mem    REG                8,2 1084680 56874831 /usr/lib/libX11.so.6.2.0
php5-cgi 12081 www-data  mem    REG                8,2   66936 56874858 /usr/lib/libXpm.so.4.11.0
php5-cgi 12081 www-data  mem    REG                8,2  145000 56874820 /usr/lib/libpng12.so.0.15.0
php5-cgi 12081 www-data  mem    REG                8,2  139216 56874818 /usr/lib/libjpeg.so.62.0.0
php5-cgi 12081 www-data  mem    REG                8,2  210544 56874851 /usr/lib/libfontconfig.so.1.2.0
php5-cgi 12081 www-data  mem    REG                8,2    9968 56874827 /usr/lib/libXau.so.6.0.0
php5-cgi 12081 www-data  mem    REG                8,2   19848 56874829 /usr/lib/libXdmcp.so.6.0.0
php5-cgi 12081 www-data  mem    REG                8,2  140672 56874848 /usr/lib/libexpat.so.1.0.0
php5-cgi 12081 www-data  mem    REG                8,2   37240 56951583 /usr/lib/php5/20060613/mcrypt.so
php5-cgi 12081 www-data  mem    REG                8,2  174680 56874863 /usr/lib/libmcrypt.so.4.4.7
php5-cgi 12081 www-data  mem    REG                8,2   28424 56873741 /usr/lib/libltdl.so.3.1.4
php5-cgi 12081 www-data  mem    REG                8,2   54040 56951581 /usr/lib/php5/20060613/mysql.so
php5-cgi 12081 www-data  mem    REG                8,2 2092560 56874874 /usr/lib/libmysqlclient.so.15.0.0
php5-cgi 12081 www-data  mem    REG                8,2  119320 56951580 /usr/lib/php5/20060613/mysqli.so
php5-cgi 12081 www-data  mem    REG                8,2   93976 56951585 /usr/lib/php5/20060613/pdo.so
php5-cgi 12081 www-data  mem    REG                8,2   28544 56951582 /usr/lib/php5/20060613/pdo_mysql.so
php5-cgi 12081 www-data  mem    REG                8,2   43368 13500589 /lib/libnss_files-2.3.6.so
php5-cgi 12081 www-data  DEL    REG                0,8           705176 /dev/zero
php5-cgi 12081 www-data    0u  unix 0xffff8101da6339c0           705174 /tmp/php.socket-0
php5-cgi 12081 www-data    1w   CHR                1,3              877 /dev/null
php5-cgi 12081 www-data    2u   CHR              136,0                2 /dev/pts/0
php5-cgi 12081 www-data    4r   REG                8,2  116414 60506994 /var/www/wop/forum/search.php
php5-cgi 12081 www-data    5r   REG                8,2   65316 60506911 /var/www/wop/forum/showthread.php
php5-cgi 12081 www-data    6r   REG                8,2   33017 60506860 /var/www/wop/forum/forumdisplay.php
php5-cgi 12081 www-data    7r   REG                8,2   33017 60506860 /var/www/wop/forum/forumdisplay.php
php5-cgi 12081 www-data    8r   REG                8,2   65316 60506911 /var/www/wop/forum/showthread.php
php5-cgi 12081 www-data    9r   REG                8,2   33017 60506860 /var/www/wop/forum/forumdisplay.php
php5-cgi 12081 www-data   10r   REG                8,2   33017 60506860 /var/www/wop/forum/forumdisplay.php
php5-cgi 12081 www-data   11r   REG                8,2   94594 60506898 /var/www/wop/forum/profile.php
php5-cgi 12081 www-data   12r   REG                8,2   28655 60506855 /var/www/wop/forum/external.php
php5-cgi 12081 www-data   13r   REG                8,2   65316 60506911 /var/www/wop/forum/showthread.php
php5-cgi 12081 www-data   14r   REG                8,2   65316 60506911 /var/www/wop/forum/showthread.php
php5-cgi 12081 www-data   15r   REG                8,2   28655 60506855 /var/www/wop/forum/external.php
php5-cgi 12081 www-data   16r   REG                8,2   33017 60506860 /var/www/wop/forum/forumdisplay.php
php5-cgi 12081 www-data   17r   REG                8,2   33017 60506860 /var/www/wop/forum/forumdisplay.php
php5-cgi 12081 www-data   18r   REG                8,2   33017 60506860 /var/www/wop/forum/forumdisplay.php
php5-cgi 12081 www-data   19r   REG                8,2   33017 60506860 /var/www/wop/forum/forumdisplay.php
php5-cgi 12081 www-data   20r   REG                8,2  116414 60506994 /var/www/wop/forum/search.php
php5-cgi 12081 www-data   21r   REG                8,2   16071 60506544 /var/www/wop/forum/archive/index.php
php5-cgi 12081 www-data   22r   REG                8,2   65316 60506911 /var/www/wop/forum/showthread.php
php5-cgi 12081 www-data   23r   REG                8,2   33017 60506860 /var/www/wop/forum/forumdisplay.php
php5-cgi 12081 www-data   24r   REG                8,2   65316 60506911 /var/www/wop/forum/showthread.php
php5-cgi 12081 www-data   25r   REG                8,2   65316 60506911 /var/www/wop/forum/showthread.php
php5-cgi 12081 www-data   26r   REG                8,2   65316 60506911 /var/www/wop/forum/showthread.php
php5-cgi 12081 www-data   27r   REG                8,2   65316 60506911 /var/www/wop/forum/showthread.php
php5-cgi 12081 www-data   28r   REG                8,2   33017 60506860 /var/www/wop/forum/forumdisplay.php
php5-cgi 12081 www-data   29r   REG                8,2  116414 60506994 /var/www/wop/forum/search.php
php5-cgi 12081 www-data   30r   REG                8,2   65316 60506911 /var/www/wop/forum/showthread.php
php5-cgi 12081 www-data   31r   REG                8,2   65316 60506911 /var/www/wop/forum/showthread.php
php5-cgi 12081 www-data   32r   REG                8,2   65316 60506911 /var/www/wop/forum/showthread.php
php5-cgi 12081 www-data   33r   REG                8,2   28655 60506855 /var/www/wop/forum/external.php
php5-cgi 12081 www-data   34r   REG                8,2   35545 60506886 /var/www/wop/forum/newreply.php
php5-cgi 12081 www-data   35r   REG                8,2  116414 60506994 /var/www/wop/forum/search.php
php5-cgi 12081 www-data   36r   REG                8,2   65316 60506911 /var/www/wop/forum/showthread.php
php5-cgi 12081 www-data   37r   REG                8,2   65316 60506911 /var/www/wop/forum/showthread.php
php5-cgi 12081 www-data   38r   REG                8,2   65316 60506911 /var/www/wop/forum/showthread.php
php5-cgi 12081 www-data   39r   REG                8,2   33017 60506860 /var/www/wop/forum/forumdisplay.php

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-30 09:22 UTC] fm at hwmails dot de
i've no downgraded to v3.0.16 because the bug does not appear in this version.
v3.0.17 show the same behaviour.
 [2008-03-31 08:46 UTC] gopalv82 at yahoo dot com
try 

wget "http://cvsweb.php.net/viewvc.cgi/pecl/apc/apc_main.c?r1=3.107&r2=3.108&view=patch"  -O kludge.patch

patch -R < kludge.patch

on 3.0.18 (and yeah, one line won't patch right - ignore)

Confirm fix, please.
 [2008-03-31 10:23 UTC] fm at hwmails dot de
Unfortunately with your with the php processes die with the following message:
2008-03-31 17:01:54: (mod_fastcgi.c.3228) response already sent out, but backend returned error on socket: unix:/tmp/php.socket-0 for /forum/showthread.php , terminating connection

there are only a few fastcgi processes with more than 0.0 cpu time all the other processes die upon creation 

there is another error log in syslog:
Mar 31 17:01:55 forum kernel: php5-cgi[16761] general protection rip:61546f rsp:7fff118e7050 error:0
 [2008-04-02 05:42 UTC] jani@php.net
I got this error couple of thousand times with 3.0.18 + that reversed patch:

[Wed Apr  2 13:39:12 2008] [apc-error] Cannot redeclare class cfg

Plus of course the damn server died. :)
 [2008-04-02 05:43 UTC] jani@php.net
Forgot to mention: 3.0.16 works flawlessly.
 [2008-04-02 10:06 UTC] rasmus@php.net
Can you try current cvs of the APC_3_0 branch?

eg. co -r APC_3_0 pecl/apc
 [2008-04-03 10:12 UTC] jani@php.net
I'll try it out tonight. Gonna do it on a live site..better do it when there's not so much traffic. :D
 [2008-04-03 18:20 UTC] jani@php.net
Unfortunately latest checkout of APC_3_0 branch doesn't work any better than the actual release 3.0.18. Now I didn't run out of file descriptors but after 5 minutes the open files had doubled when with 3.0.16 there is no such change.
 [2008-04-03 18:20 UTC] jani@php.net
Unfortunately latest checkout of APC_3_0 branch doesn't work any better than the actual release 3.0.18. Now I didn't run out of file descriptors but after 5 minutes the open files had doubled when with 3.0.16 there is no such change.
 [2008-04-03 18:23 UTC] jani@php.net
Here's my setup:

[apc]
extension = "apc.so"
apc.enabled = On
apc.shm_segments = 1
apc.shm_size = 30
apc.include_once_override = On
apc.num_files_hint = 1000
apc.user_entries_hint = 0
apc.gc_ttl = 3600
apc.ttl = 0
apc.user_ttl = 0
;apc.mmap_file_mask =
apc.filters = "-.*apc.php,/opt/httpd/sites/.*/libs/local/lang/.*\.msgs\.php,-/opt/httpd/sites/.*/libs/.*/.*\.cfg\.php,-/opt/httpd/sites/default/,+/opt/httpd
/sites/"
apc.cache_by_default = Off
apc.slam_defense = 0
apc.file_update_protection = 2
apc.enable_cli = Off
apc.max_file_size = 8M
apc.stat = Off
apc.stat_ctime = Off
apc.write_lock = On
apc.report_autofilter = Off
apc.rfc1867 = Off
apc.localcache = Off
apc.localcache.size = 512
 [2008-04-03 18:38 UTC] fm at hwmails dot de
I'll try the current branch this weekend.
 [2008-04-07 03:55 UTC] andrea at bhweb dot it
I have a very related problem, but it does trash the server's 
RAM at a high speed. With 3.0.16 it all works right but with 
3.0.18 lot of memory gets allocated and never deallocated, all 
with Lighttpd and fast-cgi.
Look at the RAM graph:
http://img521.imageshack.us/img521/7228/memoryxt6.png
when the usage is very high is when I installed APC 3.0.18, 
then I reverted to 3.0.16.

Thanks
 [2008-04-07 14:23 UTC] ken at smallboxsoftware dot net
I am experiencing this problem with apache2, fast-cgi and apc as well. Both 3.0.17 and 3.0.18 have completely bunged my system.
 [2008-04-08 05:55 UTC] fm at hwmails dot de
Finally i've got time to test the current development branch from CVS. Unfortunately the problem persisted. There are multiple .php files opened by each php process after a few seconds.

I've installed it with:
cvs -d:pserver:cvsread@cvs.php.net:/repository co -r APC_3_0 pecl/apc
phpize
./configure --enable-apc --enable-mmap && make && make install

The same problem also occures on other configurations like Apache2+PHP as module. But in these configurations there is often a limit of request an apache process serves before it dies and the opened files are also closed.

So a simple workaround would be to set MaxRequests or something similiar to a very low value.
 [2008-04-15 04:16 UTC] jani@php.net
Rasmus, any idea if this is fixed by now..?
 [2008-04-16 04:52 UTC] jani@php.net
Any idea if this quite critical bug which renders 3.0.18 totally unusable with fastcgi installations will be fixed..?
 [2008-04-16 09:50 UTC] gopalv82 at yahoo dot com
odd, the fixes made to 3_0 branch seem to be marked #ifndef ZEND_ENGINE_2

Try the APC_3_0 branch with the following patch

@@ -280,9 +280,7 @@

     /* cannot free up cache data yet, it maybe in use */

-#ifndef ZEND_ENGINE_2 
     zend_llist_del_element(&CG(open_files), h, compare_file_handles); /* We leak fds in PHP 4 without this hack */
-#endif 

     h->type = ZEND_HANDLE_FILENAME;

@@ -354,9 +352,7 @@
         }
         zend_hash_add(&EG(included_files), h->opened_path, strlen(h->opened_path)+1, (void *)&dummy, sizeof(int), NULL);

-#ifndef ZEND_ENGINE_2 
         zend_llist_add_element(&CG(open_files), h); /* We leak fds in PHP 4 without this hack */
-#endif

I can't remember why Rasmus put the #ifdefs in.
 [2008-04-18 20:41 UTC] jani@php.net
Nuking those #ifndefs does seem to fix this. I'm leaving the patched version to run for the weekend on the live site. :D
 [2008-04-18 21:14 UTC] rasmus@php.net
I think it is because I didn't realize we still needed this for the fastcgi sapi.  We don't need it anymore for the Apache sapi in PHP 5.
 [2008-04-21 04:23 UTC] jani@php.net
what makes it not needed for Apache? Seems quite strange that some SAPIs might need it and some not..?
 [2008-04-21 04:24 UTC] jani@php.net
Forgot to mention: the fix (removing those ifdefs) worked fine . Commit! :)
 [2008-04-22 10:58 UTC] zoltan at frombach dot com
I am experiencing the exact same problem. But I am not using FastCGI. The problem is present in APC 3.0.17 and APC 3.0.18 using Debian Etch with Apache 2.2.3 and PHP 5.2.5 as an Apache module. APC 3.0.16 works just fine with the same config.
 [2008-04-28 03:51 UTC] bjb at magentammt dot com
I have the same problem on FreeBSD (lighttpd/fastcgi). 

A temp solution is to have a low PHP_FCGI_MAX_REQUESTS value if there is no patch/fix somewhere or just disable APC of course.
 [2008-05-03 17:54 UTC] bek41 at cox dot net
Just FYI, this happens to with Apache 1.3.X, Php 4.4.x on FreeBSD 6.1 & 7, 3.0.16 is fine,  3.0.17/18 eat up open file space like mad.
 [2008-05-06 18:54 UTC] oliver at realtsp dot com
same symptoms with freebsd 6.1, lighttpd 1.4.19, php5.2.5 
fastcgi and apc 3.10.17|18 3.0.16 is fine.
 [2008-05-14 19:18 UTC] jakobunt at gmail dot com
This just blew a shared-hosting server off the internet.
Uhmm, what about the commit?
Downgrading to 3.0.16 works, but leaves CVE-2008-1488 open.
 [2008-05-14 20:01 UTC] rasmus@php.net
This has been fixed in CVS for a while.  Grab the current APC_3_0 branch, or wait about a day or so and we'll get 3.0.19 out the door.
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Wed Dec 12 13:01:26 2018 UTC