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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
37 - 2 = ?
Subscribe to this entry?

 
 [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-2019 The PHP Group
All rights reserved.
Last updated: Sun Sep 22 03:01:26 2019 UTC