php.net |  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: urkle@php.net 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:
Package:
Bug Type:
Summary:
From: urkle@php.net
New email:
PHP Version: OS:

 

 [2007-11-20 17:46 UTC] urkle@php.net
Description:
------------
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

"/my/path/to/direst.phar"

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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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 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.


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