mrook / phing-examples

A few Phing examples I use during talks and presentations.
34 stars 12 forks source link

test.phar doesn't run #1

Open fgsl opened 5 years ago

fgsl commented 5 years ago

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

mrook commented 5 years ago

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

fgsl commented 5 years ago

@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();