From:             felipe
Operating system: 
PHP version:      trunk-SVN-2011-11-24 (SVN)
Package:          Zip Related
Bug Type:         Bug
Bug description:ZipArchive::extractTo() memory leaks with invalid path using 
phar://

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 bug report at https://bugs.php.net/bug.php?id=60377&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=60377&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=60377&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=60377&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=60377&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60377&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=60377&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=60377&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=60377&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=60377&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=60377&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=60377&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=60377&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=60377&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=60377&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=60377&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60377&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=60377&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=60377&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=60377&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=60377&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=60377&r=mysqlcfg

Reply via email to