File: 0001-Don-t-fail-tests-with-Stirct-and-Deprecated.patch

package info (click to toggle)
php-cache-lite 1.7.16-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 424 kB
  • ctags: 458
  • sloc: php: 872; xml: 819; pascal: 28; makefile: 12
file content (20 lines) | stat: -rw-r--r-- 598 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Prach Pongpanich <prachpub@gmail.com>
Date: Mon, 18 May 2015 15:59:16 +0700
Subject: Don't fail tests with Stirct and Deprecated

---
 Cache_Lite-1.7.16/Cache/Lite.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Cache_Lite-1.7.16/Cache/Lite.php b/Cache_Lite-1.7.16/Cache/Lite.php
index 0ca762d..3ec1b88 100644
--- a/Cache_Lite-1.7.16/Cache/Lite.php
+++ b/Cache_Lite-1.7.16/Cache/Lite.php
@@ -23,6 +23,7 @@
 * @author Markus Tacker <tacker@php.net>
 */
 
+error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);
 define('CACHE_LITE_ERROR_RETURN', 1);
 define('CACHE_LITE_ERROR_DIE', 8);