|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57920 filenew incorrectly creates file path
Submitted: 2007-11-20 17:46 UTC Modified: 2007-11-22 13:31 UTC
From: Assigned:
Status: Duplicate Package: phar (PECL)
PHP Version: Irrelevant OS: Fedora 8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2007-11-20 17:46 UTC]
The cli_arg_typ_filenew function incorrectly creates the full path to a file.

if you pass in -f of "test.phar"

cli_arg_typ_filenew will return


as $d will be "." so strlen($d) == 1 and substr($args,1) will be "est.phar"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-22 13:30 UTC] greg at chiaraquartet 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

In case this was a 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.

 [2007-11-22 13:31 UTC] greg at chiaraquartet dot net
use solution in better bug #12492
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Jul 31 19:01:27 2021 UTC