From 621cefb175d66c2eb3cda7d43c9e21b113a7d8b8 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Mon, 8 Sep 2008 08:33:38 +0000 Subject: [PATCH] [BPlus] fixing seek pos in string file --- fp-includes/core/core.bplustree.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fp-includes/core/core.bplustree.class.php b/fp-includes/core/core.bplustree.class.php index 59f5b30..ffd61d2 100755 --- a/fp-includes/core/core.bplustree.class.php +++ b/fp-includes/core/core.bplustree.class.php @@ -2521,7 +2521,8 @@ class SBPlusTree extends BPlusTree { } function setstring($s) { - $seek = fseek($this->stringfile, 0, SEEK_END); + fseek($this->stringfile, 0, SEEK_END); + $seek = ftell($this->stringfile); // nul-pad string $x = str_pad($s, $this->maxstring, chr(0)); fwrite($this->stringfile, $x);