phing-examples icon indicating copy to clipboard operation
phing-examples copied to clipboard

test.phar doesn't run

Open fgsl opened this issue 6 years ago • 2 comments

Phing creates test.phar, but when I try to run it:

PHP Warning: include(phar://test.phar/hello/world.php): failed to open stream: in phar "...phar/test.phar", manifest claims to have zero entries. Phars must have at least 1 entry in ...phar/test.phar on line 2

fgsl avatar Sep 02 '19 18:09 fgsl

@fgsl what version of Phing and PHP are you running?

mrook avatar Sep 03 '19 06:09 mrook

@fgsl what version of Phing and PHP are you running?

PHP 7.2.19 (Ubuntu 18.04LTS) e Phing 2.16.1.

I changed stub.php to content below and it worked:

<?php
include 'hello/world.php';

__HALT_COMPILER();

fgsl avatar Sep 03 '19 11:09 fgsl