summaryrefslogtreecommitdiff
path: root/ext/standard/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/file.c')
-rw-r--r--ext/standard/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c
index 3796d5abbe..7a7ab1fc4a 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -1477,7 +1477,7 @@ PHP_FUNCTION(ftruncate)
convert_to_long_ex(size);
ret = ftruncate(fileno((FILE *)what), (*size)->value.lval);
- RETURN_LONG(ret);
+ RETURN_LONG(ret + 1);
}
/* }}} */