Bug #62669 [Opn->Dup]: Memory leak in is_readable
| From: | aharvey@php.net | Date: | Fri, 27 Jul 2012 03:26:25 +0000 |
| Subject: | Bug #62669 [Opn->Dup]: Memory leak in is_readable | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-172268@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62669&edit=1
ID: 62669
Updated by: aharvey@php.net
Reported by: mr_pain at operamail dot com
Summary: Memory leak in is_readable
-Status: Open
+Status: Duplicate
Type: Bug
Package: Filesystem function related
Operating System: XP SP3, Vista, W7
PHP Version: 5.4.5
Block user comment: N
Private report: N
New Comment:
Duplicate of bug #62444.
Previous Comments:
------------------------------------------------------------------------
[2012-07-26 18:21:07] mr_pain at operamail dot com
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 this bug report at https://bugs.php.net/bug.php?id=62669&edit=1