From 06d15d67fdd5d17c5d005c7bff41107754ce603a Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Mon, 20 Jul 2009 17:33:31 +0000 Subject: [PATCH] temporary fix for php5.3 --- defaults.php | 3 +++ fp-includes/core/core.bplustree.class.php | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/defaults.php b/defaults.php index 6cedd32..e5962c3 100755 --- a/defaults.php +++ b/defaults.php @@ -109,4 +109,7 @@ define('BLOG_BASEURL', 'http://'.$_SERVER['HTTP_HOST']. BLOG_ROOT); +function dummy() {} +set_error_handler('dummy'); + ?> diff --git a/fp-includes/core/core.bplustree.class.php b/fp-includes/core/core.bplustree.class.php index 100fb5c..cbafd0b 100755 --- a/fp-includes/core/core.bplustree.class.php +++ b/fp-includes/core/core.bplustree.class.php @@ -2611,6 +2611,14 @@ class caching_SBPT extends SBPlusTree { var $cache = array(); + + function caching_SBPT($infile, $stringfile, + $maxstring = 256, + $pos=null, $nodesize=null, $keylen=null) { + $this->SBPlusTree($infile, $stringfile, $maxstring, $pos, $nodesize, $keylen); + } + + function getitem(&$key, $loose=false) { if (isset($cache[$key])) return $cache[$key];