From: Matthias Jordan Date: Tue, 1 Jul 2003 08:17:55 +0000 (+0000) Subject: Put a buffer size of 1024 (the default value) into the call to fgets so X-Git-Tag: 1.1.0~465 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=712b916275d757f11e5a18fdca142fdf73c6ff22;p=lhc%2Fweb%2Fwiklou.git Put a buffer size of 1024 (the default value) into the call to fgets so older PHP versions can run install.php, too. --- 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; }