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

Pull Requests

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: Sun Dec 22 05:01:30 2024 UTC