Open lapega opened 5 years ago
This bug can be reproduced by saving this Dockerfile as .../phpcallgraph/Dockerfile
after cloning the project
from ubuntu
WORKDIR /home/
COPY . /home/
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y php
RUN ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime && \
dpkg-reconfigure --frontend noninteractive tzdata
After building and running with
docker build -t phpgraph . && docker run phpgraph bin/phpcallgraph -f txt -o phpgraph.txt src/
you get said error:
PHP Fatal error: Uncaught Error: Class 'ezcConsoleInputStandardHelpGenerator' not found in /home/lib/ezcomponents/ConsoleTools/src/input.php:220
Stack trace:
#0 /home/src/PHPCallGraphCli.php(50): ezcConsoleInput->__construct()
#1 /home/bin/phpcallgraph(51): PHPCallGraphCli->run()
#2 {main}
thrown in /home/lib/ezcomponents/ConsoleTools/src/input.php on line 220
In other words, phpcallgraph can't even make a graph of itself right now =/
The same error occurs on ubuntu 14.04 with php 5.6, so it isn't a php7 issue either.
Just tried to run:
phpcallgraph-master$
bin/phpcallgraph -r -f deadcode /mnt/web/and:
phpcallgraph-master/bin$
./phpcallgraph -r -f deadcode /mnt/web/Same error: