]> git.pld-linux.org Git - packages/php-dirs.git/blobdiff - php-session.sh
- ver 1.8. use ls to find possible php commands
[packages/php-dirs.git] / php-session.sh
index 474c299d477bdd0fe2c7ce3972b58b9ed9f3fedc..06fac3372bc4b0342a7b23d42aaf3ca5851b2884 100755 (executable)
@@ -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)
This page took 0.062182 seconds and 4 git commands to generate.