wooknight / phpcallgraph

A Call Graph Generator for PHP
GNU General Public License v3.0
37 stars 11 forks source link

Error at execute #1

Open lapega opened 5 years ago

lapega commented 5 years ago

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:

PHP Fatal error: Class 'ezcConsoleInputStandardHelpGenerator' not found in /home/pgauna/Escritorio/phpcallgraph-master/lib/ezcomponents/ConsoleTools/src/input.php on line 220

a-recknagel commented 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.