|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-20 10:48 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 12:00:01 2025 UTC |
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 ===