]> git.pld-linux.org Git - packages/php-dirs.git/commitdiff
- rel 7; use just php and not php.cli auto/th/php-dirs-1_1-7
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 28 Oct 2009 11:10:47 +0000 (11:10 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-dirs.spec -> 1.18
    php-session.sh -> 1.4

php-dirs.spec
php-session.sh

index af2ab3e30b793793016dea5007567a75c6da1271..1339b02450929f906e21a7e97fd26d0c66e2b5c6 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Common dirs for different PHP versions
 Summary(pl.UTF-8):     Wspólne katalogi dla różnych wersji PHP
 Name:          php-dirs
 Version:       1.1
-Release:       6
+Release:       7
 License:       GPL
 Group:         Base
 Source0:       php-session.sh
index c27aae781b4ee714e114a57275e9a7afb6176097..4575ed7a6a6e5cb9f8e2b862d582c05577c82024 100644 (file)
@@ -1,12 +1,12 @@
 #!/bin/sh
-if [ -x /usr/bin/php.cli ] ; then
-       RUNTIME5=$(/usr/bin/php.cli -r '$t = round(ini_get("session.gc_maxlifetime")/3600); if ($t<1) $t=1; echo $t;' 2> /dev/null)
+if [ -x /usr/bin/php ] ; then
+       RUNTIME5=$(/usr/bin/php -r '$t = round(ini_get("session.gc_maxlifetime")/3600); if ($t<1) $t=1; echo $t;' 2> /dev/null)
 elif [ -r /etc/php/php.ini ]; then
        RUNTIME5=$(awk -F"=" '/^session.gc_maxlifetime[ \t]*=/ { t=sprintf("%d", ($2/3600)); if (t<1) { t=1; }; print t; exit;}' /etc/php/php.ini)
 fi
 
-if [ -x /usr/bin/php4.cli ] ; then
-       RUNTIME4=$(/usr/bin/php4.cli -r '$t = round(ini_get("session.gc_maxlifetime")/3600); if ($t<1) $t=1; echo $t;' 2> /dev/null)
+if [ -x /usr/bin/php4 ] ; then
+       RUNTIME4=$(/usr/bin/php4 -r '$t = round(ini_get("session.gc_maxlifetime")/3600); if ($t<1) $t=1; echo $t;' 2> /dev/null)
 elif [ -r /etc/php4/php.ini ]; then
        RUNTIME4=$(awk -F"=" '/^session.gc_maxlifetime[ \t]*=/ { t=sprintf("%d", ($2/3600)); if (t<1) { t=1; }; print t; exit;}' /etc/php4/php.ini)
 fi
This page took 0.03618 seconds and 4 git commands to generate.