1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
Description: Switches off E_STRICT in error_reporting() unit tests
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
--- php-db-1.7.14.orig/DB-1.7.14/tests/db_error.phpt
+++ php-db-1.7.14/DB-1.7.14/tests/db_error.phpt
@@ -35,7 +35,7 @@ function test_error_handler($errno, $err
print "\n$prefix: $errmsg in " . basename($file) . " on line XXX\n";
}
-error_reporting(E_ALL);
+error_reporting(E_ALL & ~E_STRICT);
set_error_handler('test_error_handler');
print "testing different error codes...\n";
--- php-db-1.7.14.orig/DB-1.7.14/tests/include.inc
+++ php-db-1.7.14/DB-1.7.14/tests/include.inc
@@ -21,7 +21,7 @@
* @link http://pear.php.net/package/DB
*/
-error_reporting(E_ALL);
+error_reporting(E_ALL & ~E_STRICT);
if (!defined('PATH_SEPARATOR')) {
if (stristr(PHP_OS, 'WIN')) {
--- php-db-1.7.14.orig/DB-1.7.14/tests/db_error2.phpt
+++ php-db-1.7.14/DB-1.7.14/tests/db_error2.phpt
@@ -7,7 +7,7 @@ DB::Error 2
require_once dirname(__FILE__) . '/include.inc';
require_once 'DB.php';
-error_reporting(E_ALL);
+error_reporting(E_ALL & ~E_STRICT);
function myfunc($obj) {
print 'myfunc here, obj='
--- php-db-1.7.14.orig/DB-1.7.14/tests/limit.inc
+++ php-db-1.7.14/DB-1.7.14/tests/limit.inc
@@ -22,7 +22,7 @@
* @link http://pear.php.net/package/DB
*/
-error_reporting(E_ALL);
+error_reporting(E_ALL & ~E_STRICT);
/**
* Local error callback handler
|