dg / ftp-deployment

A tool for automated deployment of web applications to an FTP server.
https://nette.org
Other
605 stars 89 forks source link

deployment.phar error about autoload.php #141

Closed zdenekgebauer closed 3 years ago

zdenekgebauer commented 3 years ago

Version: 3.3.2

Bug Description

deploment.phar from https://github.com/dg/ftp-deployment/releases/download/v3.3.2/deployment.phar cannot open autoload.php

Steps To Reproduce

tested with PHP8

d:\download>php deployment.phar
PHP Warning:  require(phar://D:/download/deployment.phar/../vendor/autoload.php): Failed to open stream: phar error: "vendor/autoload.php" is not a file in phar "D:/download/deployment.phar" in phar://D:/download/deployment.phar/deployment.php on line 2

Warning: require(phar://D:/download/deployment.phar/../vendor/autoload.php): Failed to open stream: phar error: "vendor/autoload.php" is not a file in phar "D:/download/deployment.phar" in phar://D:/download/deployment.phar/deployment.php on line 2
PHP Fatal error:  Uncaught Error: Failed opening required 'phar://D:/download/deployment.phar/../vendor/autoload.php' (include_path='.;C:\php\pear') in phar://D:/download/deployment.phar/deployment.php:2
Stack trace:
#0 D:\download\deployment.phar(2): require()
#1 {main}
  thrown in phar://D:/download/deployment.phar/deployment.php on line 2

Fatal error: Uncaught Error: Failed opening required 'phar://D:/download/deployment.phar/../vendor/autoload.php' (include_path='.;C:\php\pear') in phar://D:/download/deployment.phar/deployment.php:2
Stack trace:
#0 D:\download\deployment.phar(2): require()
#1 {main}
  thrown in phar://D:/download/deployment.phar/deployment.php on line 2

Expected Behavior

Should display info about version and usage like previous version:

FTP deployment v3.3
-------------------
Usage:
        deployment <config_file> [-t | --test]
dg commented 3 years ago

fixed