From:             mckinneyseller at yahoo dot com
Operating system: Centos
PHP version:      5.2.6
PHP Bug Type:     Streams related
Bug description:  too many open files bug 43105

Description:
------------
'./configure' '--build=i686-redhat-linux-gnu'
'--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu'
'--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
'--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib'
'--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--cache-file=../config.cache'
'--with-libdir=lib' '--with-config-file-path=/etc'
'--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic'
'--disable-rpath' '--without-pear' '--with-bz2' '--with-curl'
'--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr'
'--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp'
'--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png'
'--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex' '--with-zlib'
'--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes'
'--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg'
'--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx'
'--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr'
'--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx'
'--enable-dio' '--without-mime-magic' '--without-sqlite'
'--with-libxml-dir=/usr' '--with-xml' '--with-apxs2=/usr/sbin/apxs'
'--without-mysql' '--without-gd' '--without-odbc' '--disable-dom'
'--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader'
'--disable-xmlwriter' '--disable-json' '--with-mcrypt=/usr/local'
'--with-mhash=/usr/local'

PHP Version 5.2.6
Apache Version  Apache/2.2.3 (CentOS)
Apache API Version      20051115 


Reproduce code:
---------------
All includes leave the .php file open.

I am running the magento e-commerce package.

The includes are standard.

This bug was reported as bug #43105 and the change log says it was
fixed for php 5.2.6 and that is what I am running per above phpinfo.


Expected result:
----------------
When I run lsof -u apache | grep magento I do not expect to see any
open .php files.



Actual result:
--------------
I have 1900 open files.  Many are multiple file handles for the same file.
 I eventually get "too many open files" error.  Some example output from 
lsof -u apache | grep magento are:

httpd   15777 apache   31r   REG      0,211    28400   82674022
/var/www/vhosts/bubbleyou.com/httpdocs/magento/app/code/core/Mage/Core/Model/App.php
httpd   15777 apache   32r   REG      0,211     3704   82483264
/var/www/vhosts/bubbleyou.com/httpdocs/magento/lib/Varien/Event/Collection.php
httpd   15777 apache   33r   REG      0,211     2587   82483270
/var/www/vhosts/bubbleyou.com/httpdocs/magento/lib/Varien/Event/Observer/Collection.php
httpd   15777 apache   34r   REG      0,211    27056   82673926
/var/www/vhosts/bubbleyou.com/httpdocs/magento/app/code/core/Mage/Core/Model/Config.php
httpd   15777 apache   35r   REG      0,211     1300   82674010
/var/www/vhosts/bubbleyou.com/httpdocs/magento/app/code/core/Mage/Core/Model/Config/Base.php
httpd   15777 apache   36r   REG      0,211    14602   82483250
/var/www/vhosts/bubbleyou.com/httpdocs/magento/lib/Varien/Simplexml/Config.php
httpd   15777 apache   37r   REG      0,211    12798   82673982
/var/www/vhosts/bubbleyou.com/httpdocs/magento/app/code/core/Mage/Core/Model/Locale.php
httpd   15777 apache   38r   REG      0,211     4426   82674014
/var/www/vhosts/bubbleyou.com/httpdocs/magento/app/code/core/Mage/Core/Model/Config/Options.php
httpd   15777 apache   39r   REG      0,211    19181   82483316
/var/www/vhosts/bubbleyou.com/httpdocs/magento/lib/Varien/Object.php


-- 
Edit bug report at http://bugs.php.net/?id=45133&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45133&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45133&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45133&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45133&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45133&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45133&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45133&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45133&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45133&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45133&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45133&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45133&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45133&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45133&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45133&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45133&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45133&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45133&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45133&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45133&r=mysqlcfg

Reply via email to