From 712b916275d757f11e5a18fdca142fdf73c6ff22 Mon Sep 17 00:00:00 2001 From: Matthias Jordan Date: Tue, 1 Jul 2003 08:17:55 +0000 Subject: [PATCH] Put a buffer size of 1024 (the default value) into the call to fgets so older PHP versions can run install.php, too. --- install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.php b/install.php index 164c93c6fd..8761881877 100644 --- a/install.php +++ b/install.php @@ -176,7 +176,7 @@ function copydirectory( $source, $dest ) { function readconsole() { $fp = fopen( "php://stdin", "r" ); - $resp = trim( fgets( $fp ) ); + $resp = trim( fgets( $fp, 1024 ) ); fclose( $fp ); return $resp; } -- 2.20.1