packages: phorum/unhide-errors.patch - more @ unhiding found

glen glen at pld-linux.org
Tue May 15 22:37:05 CEST 2012


Author: glen                         Date: Tue May 15 20:37:05 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- more @ unhiding found

---- Files affected:
packages/phorum:
   unhide-errors.patch (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/phorum/unhide-errors.patch
diff -u packages/phorum/unhide-errors.patch:1.2 packages/phorum/unhide-errors.patch:1.3
--- packages/phorum/unhide-errors.patch:1.2	Sun Apr 17 22:11:37 2011
+++ packages/phorum/unhide-errors.patch	Tue May 15 22:37:00 2012
@@ -1,16 +1,5 @@
---- phorum/include/db/mysql/mysqli_replication.php~	2011-02-01 16:10:39.000000000 +0200
-+++ phorum/include/db/mysql/mysqli_replication.php	2011-02-01 16:20:50.127122766 +0200
-@@ -119,7 +119,7 @@
-             } else {
-                 // we suppress errors from the mysqli_connect command as errors
-                 // are catched differently.            	
--                $conn_write = @mysqli_connect(
-+                $conn_write = mysqli_connect(
-                     $PHORUM['DBCONFIG']['server'],
-                     $PHORUM['DBCONFIG']['user'],
-                     $PHORUM['DBCONFIG']['password'],
---- phorum/include/db/mysql/mysqli_replication.php.original	2011-01-27 13:25:29.000000000 +0200
-+++ phorum/include/db/mysql/mysqli_replication.php	2011-04-11 13:34:43.832383910 +0300
+--- phorum/include/db/mysql/mysqli_replication.php	2011-04-11 13:34:43.832383910 +0300
++++ phorum-5.2.18/include/db/mysql/mysqli_replication.php	2012-05-15 23:31:55.915439900 +0300
 @@ -98,7 +98,7 @@
  
              $conn_read = phorum_db_get_random_connection($PHORUM['DBCONFIG']['slaves']);
@@ -20,6 +9,15 @@
                  mysqli_query( $conn_read,"SET NAMES '{$PHORUM['DBCONFIG']['charset']}'");
              }
          }
+@@ -119,7 +119,7 @@
+             } else {
+                 // we suppress errors from the mysqli_connect command as errors
+                 // are catched differently.            	
+-                $conn_write = @mysqli_connect(
++                $conn_write = mysqli_connect(
+                     $PHORUM['DBCONFIG']['server'],
+                     $PHORUM['DBCONFIG']['user'],
+                     $PHORUM['DBCONFIG']['password'],
 @@ -129,7 +129,7 @@
                      );
              }
@@ -29,3 +27,23 @@
                  mysqli_query( $conn_write,"SET NAMES '{$PHORUM['DBCONFIG']['charset']}'");
              }
          }
+@@ -412,7 +412,7 @@
+             $server_data = $db_array[$rand_server];
+             // we suppress errors from the mysqli_connect command as errors
+             // are catched differently.
+-            $conn = @mysqli_connect(
++            $conn = mysqli_connect(
+                                    $server_data['server'],
+                                    $server_data['user'],
+                                    $server_data['password'],
+--- phorum-5.2.18/./include/db/mysql/mysqli.php~	2012-05-15 23:33:39.000000000 +0300
++++ phorum-5.2.18/./include/db/mysql/mysqli.php	2012-05-15 23:34:26.022634898 +0300
+@@ -87,7 +87,7 @@
+         $PHORUM = $GLOBALS['PHORUM'];
+         // we suppress errors from the mysqli_connect command as errors
+         // are catched differently.
+-        $conn = @mysqli_connect(
++        $conn = mysqli_connect(
+             $PHORUM['DBCONFIG']['server'],
+             $PHORUM['DBCONFIG']['user'],
+             $PHORUM['DBCONFIG']['password'],
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/phorum/unhide-errors.patch?r1=1.2&r2=1.3



More information about the pld-cvs-commit mailing list