Open alternat0r opened 3 years ago
I also encountered this problem, don't know if the package cannot be used in the framework https://github.com/wilbur-yu/hyperf-source-encrypter
➜ composer start
> composer dump-autoload -o && php ./bin/hyperf.php start
Generating optimized autoload files
> rm -rf runtime/container
Generated optimized autoload files containing 3372 classes
[INFO] Worker#0 started.
[INFO] Worker#1 started.
[INFO] Worker#2 started.
[INFO] HTTP Server listening at 0.0.0.0:9501
[INFO] Worker#4 started.
[INFO] Worker#3 started.
[INFO] Worker#5 started.
[INFO] Worker#6 started.
[INFO] Worker#7 started.
[ERROR] Call to a member function input() on null[18] in /Users/wilbur.yu/MyCode/Oneself/composer-packages/hyperf-component/hyperf-skeleton/dist/app/Controller/IndexController.php(234) : eval()'d code(1) : eval()'d code
[ERROR] #0 /Users/wilbur.yu/MyCode/Oneself/composer-packages/hyperf-component/hyperf-skeleton/dist/vendor/hyperf/http-server/src/CoreMiddleware.php(161): App\Controller\IndexController->index()
#1 /Users/wilbur.yu/MyCode/Oneself/composer-packages/hyperf-component/hyperf-skeleton/dist/vendor/hyperf/http-server/src/CoreMiddleware.php(113): Hyperf\HttpServer\CoreMiddleware->handleFound(Object(Hyperf\HttpServer\Router\Dispatched), Object(Hyperf\HttpMessage\Server\Request))
#2 /Users/wilbur.yu/MyCode/Oneself/composer-packages/hyperf-component/hyperf-skeleton/dist/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): Hyperf\HttpServer\CoreMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#3 /Users/wilbur.yu/MyCode/Oneself/composer-packages/hyperf-component/hyperf-skeleton/dist/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#4 /Users/wilbur.yu/MyCode/Oneself/composer-packages/hyperf-component/hyperf-skeleton/dist/vendor/hyperf/dispatcher/src/HttpDispatcher.php(40): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#5 /Users/wilbur.yu/MyCode/Oneself/composer-packages/hyperf-component/hyperf-skeleton/dist/vendor/hyperf/http-server/src/Server.php(116): Hyperf\Dispatcher\HttpDispatcher->dispatch(Object(Hyperf\HttpMessage\Server\Request), Array, Object(Hyperf\HttpServer\CoreMiddleware))
#6 {main}
Error Description: An error was found when executing an obfuscated PHP script for CLI usage. Especially when using argv() and getopt() function.
Cause: Function argv() and getopt() seem does not work well with the Obfuscator.
Error output: