OSDN Git Service
(root)
/
pukiwiki
/
pukiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d7bbd8
)
Warning: fread() [function.fread]: Length parameter must be greater than 0
author
henoheno
<henoheno>
Sun, 2 Sep 2007 14:24:40 +0000
(23:24 +0900)
committer
umorigu
<umorigu@gmail.com>
Sun, 30 Nov 2014 01:12:08 +0000
(10:12 +0900)
lib/file.php
patch
|
blob
|
history
diff --git
a/lib/file.php
b/lib/file.php
index
9472efa
..
54023be
100644
(file)
--- a/
lib/file.php
+++ b/
lib/file.php
@@
-39,6
+39,8
@@
function get_source($page = NULL, $lock = TRUE, $join = FALSE)
$size = filesize($path);
if ($size === FALSE) {
$result = FALSE;
+ } else if ($size == 0) {
+ $result = '';
} else {
$result = fread($fp, $size);
if ($result !== FALSE) {