From 009032c95cfa2cf3bf73a8013e4b95ec16c6dfb3 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Sun, 7 Dec 2008 14:04:58 +0000 Subject: [PATCH] TERRIBLE bug to appear right before the discussion of my thesis, but in fact quite trivial: a long were read as unsigned, while in fact it was signed --- fp-includes/core/core.bplustree.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fp-includes/core/core.bplustree.class.php b/fp-includes/core/core.bplustree.class.php index 1c67643..5cdd326 100755 --- a/fp-includes/core/core.bplustree.class.php +++ b/fp-includes/core/core.bplustree.class.php @@ -1324,7 +1324,7 @@ class BPlusTree_Node { $x = 'Cflag/Cvalidkeys/'; $n = $this->size+1; for ($i = 0; $i<$n; $i++) { - $x .= "Lindices{$i}/"; + $x .= "lindices{$i}/"; } $arr = unpack($x, $s); @@ -1426,7 +1426,7 @@ class BPlusTree_Node { } $is_o=true; while((list(,$v)=each($ff)) && $is_o=is_object($v)); - if (!$is_o) {d("CAPUTT");f();} + if (!$is_o) trigger_error('ERR', E_USER_ERROR);} } /**