Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPAB 1.25.7 generates broken PHAR for PHPUnit #92

Closed
sebastianbergmann opened this issue Nov 22, 2019 · 0 comments

Comments

@sebastianbergmann
Copy link
Contributor

@sebastianbergmann sebastianbergmann commented Nov 22, 2019

$ git clone https://github.com/sebastianbergmann/phpunit.git
$ cd phpunit
$ git checkout 8.4
$ ant phar
.
.
.
    [phpab] phpab 1.25.7 - Copyright (C) 2009 - 2019 by Arne Blankerts and Contributors
    [phpab] 
    [phpab] Scanning directory /usr/local/src/phpunit/build/phar-scoped
    [phpab] 
    [phpab] phar archive '/usr/local/src/phpunit/build/phpunit-library-8.4.3-16-g46cbb7501.phar' generated.
    [phpab] 
     [copy] Copying 1 file to /usr/local/src/phpunit/build
    [phpab] phpab 1.25.7 - Copyright (C) 2009 - 2019 by Arne Blankerts and Contributors
    [phpab] 
    [phpab] Scanning directory /usr/local/src/phpunit/build/phar-scoped
    [phpab] 
    [phpab] phar archive '/usr/local/src/phpunit/build/phpunit-8.4.3-16-g46cbb7501.phar' generated.
    [phpab] 
   [delete] Deleting directory /usr/local/src/phpunit/build/phar
   [delete] Deleting: /usr/local/src/phpunit/build/binary-phar-autoload.php
$ /usr/local/src/phpunit/build/phpunit-8.4.3-16-g46cbb7501.phar --version
PHP Parse error:  syntax error, unexpected '/' in /usr/local/src/phpunit/build/phpunit-8.4.3-16-g46cbb7501.phar on line 41
.
.
.
define('__PHPUNIT_PHAR__', str_replace(DIRECTORY_SEPARATOR, '/', __FILE__));
define('__PHPUNIT_PHAR_ROOT__', 'phar://phpunit-8.4.3-16-g46cbb7501.phar');

Phar::mapPhar('phpunit-8.4.3-16-g46cbb7501.phar');

require /myclabs-deep-copy/DeepCopy/DeepCopy.php';
require 'phar://phpunit-8.4.3-16-g46cbb7501.phar' . '/myclabs-deep-copy/DeepCopy/Exception/CloneException.php';
require 'phar://phpunit-8.4.3-16-g46cbb7501.phar' . '/myclabs-deep-copy/DeepCopy/Exception/PropertyException.php';
$ git revert --no-commit d2666181bc3c8ea5ad096f3eb7e4f1ad742c199f
.
.
.
     [copy] Copying 1 file to /usr/local/src/phpunit/build/phar-scoped
    [phpab] phpab 1.25.6 - Copyright (C) 2009 - 2019 by Arne Blankerts and Contributors
    [phpab] 
    [phpab] Scanning directory /usr/local/src/phpunit/build/phar-scoped
    [phpab] 
    [phpab] phar archive '/usr/local/src/phpunit/build/phpunit-library-8.4.3-16-g46cbb7501.phar' generated.
    [phpab] 
     [copy] Copying 1 file to /usr/local/src/phpunit/build
    [phpab] phpab 1.25.6 - Copyright (C) 2009 - 2019 by Arne Blankerts and Contributors
    [phpab] 
    [phpab] Scanning directory /usr/local/src/phpunit/build/phar-scoped
    [phpab] 
    [phpab] phar archive '/usr/local/src/phpunit/build/phpunit-8.4.3-16-g46cbb7501.phar' generated.
    [phpab] 
   [delete] Deleting directory /usr/local/src/phpunit/build/phar
   [delete] Deleting: /usr/local/src/phpunit/build/binary-phar-autoload.php
$ /usr/local/src/phpunit/build/phpunit-8.4.3-16-g46cbb7501.phar --version
PHPUnit 8.4.3 by Sebastian Bergmann and contributors.
@theseer theseer closed this in b12074b Nov 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.