From 08d65680de0e6664ce208bfcea491b936dd5a8df Mon Sep 17 00:00:00 2001 From: dairiki Date: Sat, 18 Aug 2001 02:38:34 +0000 Subject: [PATCH] Attempt to fix SF bug #413446. I think this bug was due to using PHP's file() function to slurp in the files (as an array of lines). The files, being serialized data, consist of only one (sometimes very long) line. I think (at least in some PHPs) this make the file() function unhappy. Fixed to use fread() rather than file(). Also make sure to open files in 'binary' mode. git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/branches/release-1_2-branch@540 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/db_filesystem.php | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/lib/db_filesystem.php b/lib/db_filesystem.php index 27121c9f5..c904e99d0 100644 --- a/lib/db_filesystem.php +++ b/lib/db_filesystem.php @@ -1,4 +1,4 @@ -