From d5e52099d61186ff0c9d0d94a0fa3b78ca19c7c2 Mon Sep 17 00:00:00 2001 From: Damien Regad Date: Wed, 30 Apr 2014 10:11:55 +0200 Subject: memcache: include_once() to avoid error with PHPUnit PHPUnit 4.x+ used in conjunction with ADOdb memcache library causes a 'cannot redeclare _rs2serialize' error when including adodb-csv.inc.php. http://phplens.com/lens/lensforum/msgs.php?id=19489 --- adodb-memcache.lib.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'adodb-memcache.lib.inc.php') diff --git a/adodb-memcache.lib.inc.php b/adodb-memcache.lib.inc.php index 2f3a3a21..c187cd2a 100644 --- a/adodb-memcache.lib.inc.php +++ b/adodb-memcache.lib.inc.php @@ -7,7 +7,7 @@ global $ADODB_INCLUDED_MEMCACHE; $ADODB_INCLUDED_MEMCACHE = 1; global $ADODB_INCLUDED_CSV; -if (empty($ADODB_INCLUDED_CSV)) include(ADODB_DIR.'/adodb-csvlib.inc.php'); +if (empty($ADODB_INCLUDED_CSV)) include_once(ADODB_DIR.'/adodb-csvlib.inc.php'); /* -- cgit v1.3