Bug #60377 [Com]: ZipArchive::extractTo() memory leaks with invalid path using phar://
| From: | reeze dot xia at gmail dot com | Date: | Sat, 08 Sep 2012 15:14:25 +0000 |
| Subject: | Bug #60377 [Com]: ZipArchive::extractTo() memory leaks with invalid path using phar:// | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-173253@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60377&edit=1
ID: 60377
Comment by: reeze dot xia at gmail dot com
Reported by: felipe@php.net
Summary: ZipArchive::extractTo() memory leaks with invalid
path using phar://
Status: Assigned
Type: Bug
Package: Zip Related
PHP Version: trunk-SVN-2011-11-24 (SVN)
Assigned To: pajoye
Block user comment: N
Private report: N
New Comment:
I just test with latest versions, It seems been fixed already :)
Previous Comments:
------------------------------------------------------------------------
[2011-11-24 21:52:14] felipe@php.net
Description:
------------
See below.
Test script:
---------------
<?php
$x = new ZipArchive;
$x->extractTo("phar:///usr/local/bin/phar.phar/a");
Actual result:
--------------
$ sapi/cli/php ../bug.php
[Thu Nov 24 19:50:30 2011] Script: '../bug.php'
/home/felipe/dev/phptrunk/main/streams/streams.c(258) : Freeing 0x7FF3DEA323F8 (8 bytes),
script=../bug.php
[Thu Nov 24 19:50:30 2011] Script: '../bug.php'
/home/felipe/dev/phptrunk/main/spprintf.c(236) : Freeing 0x7FF3DEA35440 (207 bytes),
script=../bug.php
=== Total 2 memory leaks detected ===
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60377&edit=1