|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62669 Memory leak in is_readable
Submitted: 2012-07-26 18:21 UTC Modified: 2012-07-27 03:26 UTC
From: mr_pain at operamail dot com Assigned:
Status: Duplicate Package: Filesystem function related
PHP Version: 5.4.5 OS: XP SP3, Vista, W7
Private report: No CVE-ID: None
 [2012-07-26 18:21 UTC] mr_pain at operamail dot com
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:
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++) {

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

Expected result:
No leaked handles

Actual result:
100 leaked handles


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-27 03:26 UTC]
-Status: Open +Status: Duplicate
 [2012-07-27 03:26 UTC]
Duplicate of bug #62444.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 22:01:28 2024 UTC