Ruud Kamphuis
Ruud Kamphuis
With Nginx Unit this seems possible by setting the `PHP_INI_SCAN_DIR` environment variable. See: - https://github.com/nginx/unit/issues/969#issuecomment-1757057657 I wonder if FrankenPHP can work the same.
Unfortunately, FrankenPHP seems to ignore this environment variable: ``` php_server { env PHP_INI_SCAN_DIR /opt/homebrew/etc/php/8.2:/opt/homebrew/etc/php/8.2/conf.d:etc/start/php } ``` It does show up in `phpinfo()` under `PHP Variables`: ``` $_SERVER['PHP_INI_SCAN_DIR'] /opt/homebrew/etc/php/8.2:/opt/homebrew/etc/php/8.2/conf.d:etc/start/php ``` However,...
It works when I start FrankenPHP like this: ``` env PHP_INI_SCAN_DIR=:etc/start/php ~/Downloads/frankenphp run ```
@TomasVotruba @samsonasik This one is ready for review, what do you think 😊 ?
@TomasVotruba You're probably busy, but are there any things you want me to change to move this PR forward?
@TomasVotruba Now that https://github.com/TomasVotruba/class-leak/pull/39 is merged instead of https://github.com/TomasVotruba/class-leak/pull/36, this PR is out of sync. But before I fix it up again, I'd like to hear your thoughts if you...
@samsonasik You might also know something about this 😁
> Where is the MyValue created? But us. When create these objects when decoding JSON objects to have type safety. We use Symfony Serializer for this. Works great. But now...
I'm going to have a look at phpdoc-parser and see if we can have some basic functionality that is able to find used classes in arrays and lists.
I was thinking the same. Without support for PHPDoc I can't really use class-leak. It would be so good if this thing could run in CI and warn whenever something...