Open stefahn opened 6 years ago
In my environment (PHP 7.1.9 cgi-fcgi) php_sapi_name() returns fpm-fcgi. So in my opinion the check for cli on line 14 should be adapted (maybe so it checks if cli is contained within php_sapi_name()).
php_sapi_name()
fpm-fcgi
cli
In my environment (PHP 7.1.9 cgi-fcgi)
php_sapi_name()
returnsfpm-fcgi
. So in my opinion the check forcli
on line 14 should be adapted (maybe so it checks ifcli
is contained withinphp_sapi_name()
).