From: Arkadiusz Miśkiewicz Date: Wed, 2 May 2018 09:04:04 +0000 (+0200) Subject: - ver 1.8. use ls to find possible php commands X-Git-Tag: auto/th/php-dirs-1.8-1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fphp-dirs.git;a=commitdiff_plain;h=5e40448654b711c59282a41693133f01e3f5b495 - ver 1.8. use ls to find possible php commands --- diff --git a/php-dirs.spec b/php-dirs.spec index 1eb58aa..6a303b0 100644 --- a/php-dirs.spec +++ b/php-dirs.spec @@ -5,7 +5,7 @@ Summary: Common dirs for PHP Summary(pl.UTF-8): Wspólne katalogi dla PHP Name: php-dirs -Version: 1.7 +Version: 1.8 Release: 1 License: GPL Group: Base diff --git a/php-session.sh b/php-session.sh index 474c299..06fac33 100755 --- a/php-session.sh +++ b/php-session.sh @@ -23,7 +23,7 @@ cleanup_dir() { find_gc_time() { gc_time=0 local gc php - for php in php php4 php52 php53 php54 php55 php56 php70 php71 php72; do + for php in php $(cd /usr/bin && ls -1 php[0-9]* 2> /dev/null); do gc= if [ -x /usr/bin/$php ]; then gc=$($php -r 'echo max(round(ini_get("session.gc_maxlifetime")/3600), 1);' 2> /dev/null)