diff --git a/libs/esl/php/Makefile b/libs/esl/php/Makefile index fd760a454c..3095ea2d29 100644 --- a/libs/esl/php/Makefile +++ b/libs/esl/php/Makefile @@ -26,5 +26,5 @@ reswig: swigclean esl_wrap.cpp install: ESL.so cp ESL.so $(shell php-config --extension-dir) - cp ESL.php $(shell php -r 'phpinfo();' | grep include_path | cut -d: -f2) + cp ESL.php $(shell php -r 'echo ini_get("include_path");' | cut -d: -f2) echo 'extension=ESL.so' > $(shell php-config --configure-options | tr " " "\n" | grep -- --with-config-file-scan-dir | cut -f2 -d=)/esl.ini