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

From: Date: Fri, 07 Aug 2009 14:25:46 +0000
Subject: #49190 [Opn]: PharData::convertToExecutable does not recognize filenames with multiple dots
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-140786@lists.php.net to get a copy of this message
 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=49190&edit=1



Thread (4 messages)

« previous php.bugs (#140786) next »