No persistent connections with PHP4

Martin Marques martin at bugs.unl.edu.ar
Fri Jun 9 19:10:30 CEST 2006


When using PHP4 and setting $rcmail_config['db_persistent'] = TRUE; RC doesn't use persistent connetions. Here's the patch:

$ svn diff program/include/rcube_db.inc 
Index: program/include/rcube_db.inc
===================================================================
--- program/include/rcube_db.inc        (revision 259)
+++ program/include/rcube_db.inc        (working copy)
@@ -80,7 +80,7 @@
    */
   function rcube_db($db_dsnw, $db_dsnr='', $pconn=false)
     {
-    $this->__construct($db_dsnw, $db_dsnr);
+    $this->__construct($db_dsnw, $db_dsnr, $pconn);
     }
 


-- 
---------------------------------------------------------
Lic. Martín Marqués         |   SELECT 'mmarques' || 
Centro de Telemática        |       '@' || 'unl.edu.ar';
Universidad Nacional        |   DBA, Programador, 
    del Litoral             |   Administrador
---------------------------------------------------------






More information about the Dev mailing list