summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 1e10984cca..44d604eb34 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -1310,7 +1310,7 @@ PHP_FUNCTION(stream_set_timeout)
PHPAPI PHP_FUNCTION(fgets)
{
zval **arg1, **arg2;
- int len;
+ int len = 1024;
char *buf = NULL;
int argc = ZEND_NUM_ARGS();
size_t line_len = 0;