#35740 [Asn->Csd]: memory leak when including a directory

From: Date: Tue, 20 Dec 2005 09:48:35 +0000
Subject: #35740 [Asn->Csd]: memory leak when including a directory
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-90702@lists.php.net to get a copy of this message
 ID:               35740
 Updated by:       tony2001@php.net
 Reported By:      david at tulloh dot id dot au
-Status:           Assigned
+Status:           Closed
 Bug Type:         Filesystem function related
 Operating System: Debian Linux
 PHP Version:      5.1.1
 Assigned To:      tony2001
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2005-12-20 09:30:40] david at tulloh dot id dot au

Description:
------------
Including a directory causes a memory leak.  While it's obviously bad
and should fail, the memory leak was a surprise.

Reproduce code:
---------------
> php -r '@include("./");'
php-5.1.1/main/fopen_wrappers.c(539) :  Freeing 0x08373750 (49 bytes),
script=-
=== Total 1 memory leaks detected ===

> php -r '@include("/");'
php-5.1.1/main/fopen_wrappers.c(539) :  Freeing 0x083735E8 (2 bytes),
script=-
=== Total 1 memory leaks detected ===

> php -r '@include(".");'
php-5.1.1/main/fopen_wrappers.c(539) :  Freeing 0x08373790 (49 bytes),
script=-
Last leak repeated 1 time
=== Total 2 memory leaks detected ===





------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35740&edit=1


Thread (3 messages)

« previous php.bugs (#90702) next »