php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58328 incorrect full path usage when creating class
Submitted: 2008-08-26 14:05 UTC Modified: 2008-08-27 14:49 UTC
From: st2oo2ww at yahoo dot com Assigned:
Status: Closed Package: phar (PECL)
PHP Version: 5.2.5 OS: gentoo linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: st2oo2ww at yahoo dot com
New email:
PHP Version: OS:

 

 [2008-08-26 14:05 UTC] st2oo2ww at yahoo dot com
Description:
------------
When fullpath with any dot used, Phar throw [UnexpectedValueException]: 
Cannot create phar '/some/path/lo.mytests/package.phar', file extension (or combination) not recognised. 

Same test with any real path and without dot, accepted correctly. 

Reproduce code:
---------------
$fname = '/some/path/lo.mytests/package.phar';

try {
	$myphar = new Phar($fname);
} catch (Exception $e){
	var_dump($e);
}


Expected result:
----------------
no UnexpectedValueException for paths with dots


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-27 14:49 UTC] steph dot fox at virgin dot net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

Hi,

This bug was reported informally and fixed some months ago in CVS, but we don't have a record of it elsewhere so thanks for reporting it here.

This test:

http://cvs.php.net/viewvc.cgi/pecl/phar/tests/phar_dotted_path.phpt

still passes under CVS, so I'm closing this report.

- Steph
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 12:01:30 2024 UTC