|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2013-03-05 19:42 UTC] ralphschindler@php.net
-Assigned To:
+Assigned To: ralphschindler
[2013-06-16 22:53 UTC] stas@php.net
-Status: Assigned
+Status: Feedback
[2013-06-16 22:53 UTC] stas@php.net
[2013-10-15 11:54 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 04:00:01 2025 UTC |
Description: ------------ When using convertToExecutable() to add compression to an existing phar archive, if the original phar name contains full stops . the new phar.tar.gz extension is added to early. eg; proem-0.1.2.phar becomes: proem-0.phar.tar.gz Test script: --------------- #!/usr/bin/env php <?php require 'lib/Proem/Api/Proem.php'; $phar = new Phar('build/proem-' . Proem\Api\Proem::VERSION . '.phar'); $phar->buildFromDirectory('lib'); $phar->setStub("<?php Phar::mapPhar('proem.phar'); require_once 'phar://proem.phar/Proem/Autoloader.php'; (new Proem\Autoloader())->registerNamespaces(['Proem' => 'lib'])->register(); __HALT_COMPILER(); ?>"); $phar->convertToExecutable(Phar::TAR, Phar::GZ); Expected result: ---------------- thorpe@dev[~/src/proem][master]+ ls -l build/ total 76 -rw-r--r-- 1 thorpe thorpe 64006 Feb 2 23:53 proem-0.1.2.phar -rw-r--r-- 1 thorpe thorpe 8523 Feb 2 23:53 proem-0.1.2.phar.tar.gz Actual result: -------------- thorpe@dev[~/src/proem][master]+ ls -l build/ total 76 -rw-r--r-- 1 thorpe thorpe 64006 Feb 2 23:53 proem-0.1.2.phar -rw-r--r-- 1 thorpe thorpe 8523 Feb 2 23:53 proem-0.phar.tar.gz