From:             alexander dot wahl at netlusive dot com
Operating system: Linux 2.6.26-2-amd64
PHP version:      5.3.0
PHP Bug Type:     PHAR related
Bug description:  PharData::convertToExecutable does not recognize filenames 
with multiple dots

Description:
------------
PharData::convertToExecutable does not recognize filenames with multiple 
dots, while creating the new archive. Everything from the first dot is 
ignored.


Reproduce code:
---------------
<?php
try {
        $oTarPhar = new PharData(realpath('test.one.two.tar'), Phar::NONE,
'.tar');
        $oTarPhar->convertToExecutable(Phar::PHAR, Phar::NONE, '.phar');
} catch (Exception $e) {
        echo $e->getMessage();
}
?>

Expected result:
----------------
A new PHAR archive with the expected filename: 

test.one.two.phar

Actual result:
--------------
A new PHAR archive with the filename: 

test.phar

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

Reply via email to