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:        fel...@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] fel...@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

Reply via email to