Make sure output buffering is off for install scripts
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 13 Mar 2004 06:29:39 +0000 (06:29 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 13 Mar 2004 06:29:39 +0000 (06:29 +0000)
install-utils.inc

index 55e712c..608c6ab 100644 (file)
@@ -1,6 +1,9 @@
 <?php
 
 function install_version_checks() {
+       # Turn off output buffering if it's on
+       @ob_end_flush();
+       
        if( !function_exists( "version_compare" ) ) {
                # version_compare was introduced in 4.1.0
                die( "Your PHP version is much too old; 4.0.x will _not_ work. 4.3.2 or higher is recommended. ABORTING.\n" );