[Pkg-php-commits] [php/debian-sid] Set explicit error level to hide warnings on systems with modified php.ini
Ondřej Surý
ondrej at sury.org
Thu Oct 21 13:10:17 UTC 2010
---
debian/maxlifetime | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/debian/maxlifetime b/debian/maxlifetime
index b95d6b2..2a89134 100644
--- a/debian/maxlifetime
+++ b/debian/maxlifetime
@@ -3,7 +3,7 @@
max=1440
if which php5 >/dev/null 2>&1 && [ -e /etc/php5/apache2/php.ini ]; then
- cur=$(php5 -c /etc/php5/apache2/php.ini -r 'print ini_get("session.gc_maxlifetime");')
+ cur=$(php5 -c /etc/php5/apache2/php.ini -d "error_reporting='E_ALL & ~E_DEPRECATED'" -r 'print ini_get("session.gc_maxlifetime");')
[ -z "$cur" ] && cur=0
[ "$cur" -gt "$max" ] && max=$cur
else
--
1.7.1
More information about the Pkg-php-commits
mailing list