#49190 [NEW]: PharData::convertToExecutable does not recognize filenames with multiple dots

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



#49190 [Opn]: PharData::convertToExecutable does not recognize filenames with multiple dots

2009-08-07 Thread alexander dot wahl at netlusive dot com
 ID:   49190
 User updated by:  alexander dot wahl at netlusive dot com
 Reported By:  alexander dot wahl at netlusive dot com
 Status:   Open
 Bug Type: PHAR related
 Operating System: Linux 2.6.26-2-amd64
 PHP Version:  5.3.0
 New Comment:

email typo


Previous Comments:


[2009-08-07 14:23:26] alexander dot wahl at netlusive dot com

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 this bug report at http://bugs.php.net/?id=49190edit=1