Sorry, I don't do php.net work any more. I believe Greg and Marcus both do,
though, so hang on in there!

On 26 April 2015 at 20:43, giunta dot gaetano at gmail dot com <
[email protected]> wrote:

> Edit report at https://bugs.php.net/bug.php?id=58852&edit=1
>
>  ID:                 58852
>  Comment by:         giunta dot gaetano at gmail dot com
>  Reported by:        wes dot harris at gmail dot com
>  Summary:            PharData::compress truncates filenames if dots exist
>                      in the filename
>  Status:             Not a bug
>  Type:               Bug
>  Package:            phar
>  PHP Version:        5.3.0RC4
>  Block user comment: N
>  Private report:     N
>
>  New Comment:
>
> I also think that this bug should be reopened.
>
> The current API does not seem to work very well, as it makes it extremely
> hard to create archives with dots in their filenames
>
>
> Previous Comments:
> ------------------------------------------------------------------------
> [2012-07-28 12:03:45] david dot vantyghem at free dot fr
>
> I create a file name toto.123.file1.tar with
> $phar->buildFromDirectory("$directory")
> I create a file name toto.123.file1.tar.md5 -> no problem
> How to create a compressed file named toto.123.file1.tar.gz? I must do a
> special script to keep 123.file1 in a variable???
>
> ------------------------------------------------------------------------
> [2012-07-28 11:54:30] david dot vantyghem at free dot fr
>
> But it's a problem to create a compress file with a name different from
> the original file because this name contains a dot
> It would be better to keep all the name of the file (without removing a
> part of it) and to simply add .gz or .bz2, like the UNIX commands do and
> like in other languages :
>
> test -> test.gz
> test.tar -> test.tar.gz (and not test.gz)
> test.123.tar -> test.123.tar.gz (and not test.gz)
>
> If I compress in the same folder 3 files named test, test.tar and
> test.123.tar, I will only have one file test.tar.gz!!!
>
> ------------------------------------------------------------------------
> [2012-07-28 11:47:07] david dot vantyghem at free dot fr
>
> "The extension is all things after the first period" should be added to
> the PharData::compress description in the PHP documentation.
> I wasted about 1 hour before finding your explaination. Thank you for your
> help, I understand how it works now.
>
> ------------------------------------------------------------------------
> [2009-09-08 12:07:55] greg at chiaraquartet dot net
>
> closed is used for bugs where a fix was made, -> Bogus
>
> ------------------------------------------------------------------------
> [2009-09-08 11:55:06] wes dot harris at gmail dot com
>
> Well, I don't agree with your definition of file extension, but that's
> largely irrelevant as I'm probably wrong ;)
>
> Thanks for the input, I'll just avoid having "periods" (as you call them)
> in my file names.
>
> ------------------------------------------------------------------------
>
>
> The remainder of the comments for this report are too long. To view
> the rest of the comments, please view the bug report online at
>
>     https://bugs.php.net/bug.php?id=58852
>
>
> --
> Edit this bug report at https://bugs.php.net/bug.php?id=58852&edit=1
>

Reply via email to