📜 ⬆️ ⬇️

We are looking for unused PHP extensions

image

One way to speed up the work of the PHP interpreter is to disable unused extensions.
Of course, the performance gain will be insignificant, but disabling extensions does not take much time, so it makes sense to use this method.

The main problem will be to find unused extensions, for this purpose I have written a small utility that will help you in this matter.

The utility has a cli-interface and is called as follows:
php -f php_unused_extensions_scanner.php <path to directory with php-projects>
')
The utility works as follows:

The result of the work will be a list of extensions, the extracted keywords from which were not found anywhere - now they can be disabled.
Note that some extensions are not intended to be called from scripts, but are, so to speak, “service” (xDebug, eAccelerator, APC, and the like).
Therefore, be careful when turning them off and then do not forget to check the functionality of the scripts.

You can take the utility from the githab .

Source: https://habr.com/ru/post/133083/


All Articles