Put a buffer size of 1024 (the default value) into the call to fgets so
authorMatthias Jordan <matjordan@users.mediawiki.org>
Tue, 1 Jul 2003 08:17:55 +0000 (08:17 +0000)
committerMatthias Jordan <matjordan@users.mediawiki.org>
Tue, 1 Jul 2003 08:17:55 +0000 (08:17 +0000)
older PHP versions can run install.php, too.

install.php

index 164c93c..8761881 100644 (file)
@@ -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;
 }