From:             mr_pain at operamail dot com
Operating system: XP SP3, Vista, W7
PHP version:      5.4.5
Package:          Filesystem function related
Bug Type:         Bug
Bug description:Memory leak in is_readable

Description:
------------
When function is_readable is run it leaves an open handle in the httpd
process.

Additional information:
-----------------------
Memory leak confirmed for the following configurations:
PHP vc9 5.3.15, thread safe version + Apache Httpd 2.4.2 + Win XP SP3 
PHP vc9 5.4.5,  thread safe version + Apache Httpd 2.4.2 + Win XP SP3 

PHP vc9 5.4.5 tested on WAMP stacks:
------------------------------------
XAMPP USB Lite 1.8.0        (Windows XP SP3)
Uniform Server 8.5.8-Coral  (Windows XP SP3)

For details see:
http://forum.uniformserver.com/index.php?showtopic=2627&hl=
Windows 7 SP1 and Windows Server 2008 R2 (both is 64-bit OS)

The above memory leak makes running PHP on Windows production server
impractical.


Test script:
---------------
for($i=0; $i<100;$i++) {
  is_readable("c:\\temp");
}

NOTE: the folder/file must exist for the leak to happen.

Expected result:
----------------
No leaked handles

Actual result:
--------------
100 leaked handles

-- 
Edit bug report at https://bugs.php.net/bug.php?id=62669&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=62669&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=62669&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=62669&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=62669&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=62669&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=62669&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=62669&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=62669&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=62669&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=62669&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=62669&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=62669&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=62669&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=62669&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=62669&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=62669&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=62669&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=62669&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=62669&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=62669&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=62669&r=mysqlcfg

Reply via email to