File: dont_override_errorreporting.patch

package info (click to toggle)
scuttle 0.7.4-8.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 1,520 kB
  • ctags: 1,956
  • sloc: php: 8,036; sh: 134; makefile: 48; sql: 43
file content (19 lines) | stat: -rw-r--r-- 689 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Disable overriding of PHP's error_reporting and display_errors
 settings inside scuttle. We leave it up to the administrator to configure
 these correctly through php.ini.
Bug-Debian: http://bugs.debian.org/704300

diff -ur scuttle-0.7.4.orig/header.inc.php scuttle-0.7.4/header.inc.php
--- scuttle-0.7.4.orig/header.inc.php	2008-07-16 18:48:39.000000000 +0200
+++ scuttle-0.7.4/header.inc.php	2013-04-01 10:08:29.000000000 +0200
@@ -1,8 +1,8 @@
 <?php
-ini_set('display_errors', '1');
+//ini_set('display_errors', '1');
 ini_set('mysql.trace_mode', '0');
 
-error_reporting(E_ALL ^ E_NOTICE);
+//error_reporting(E_ALL ^ E_NOTICE);
 
 define('DEBUG', true);
 session_start();