Added the default parameter to fgets explicitly (1024) to make the
authorMatthias Jordan <matjordan@users.mediawiki.org>
Thu, 14 Aug 2003 23:42:10 +0000 (23:42 +0000)
committerMatthias Jordan <matjordan@users.mediawiki.org>
Thu, 14 Aug 2003 23:42:10 +0000 (23:42 +0000)
install.php script work with newer PHP versions.

install.php

index 8761881..e5aec8a 100644 (file)
@@ -195,7 +195,7 @@ function dbsource( $conn, $fname ) {
        $done = false;
 
        while ( ! feof( $fp ) ) {
-               $line = trim( fgets( $fp ) );
+               $line = trim( fgets( $fp, 1024 ) );
                $sl = strlen( $line ) - 1;
 
                if ( $sl < 0 ) { continue; }