[Fusionforge-commits] r14830 - in trunk: . src/db

Roland Mas lolando at fusionforge.org
Thu Nov 17 20:51:16 CET 2011


Author: lolando
Date: 2011-11-17 20:51:16 +0100 (Thu, 17 Nov 2011)
New Revision: 14830

Modified:
   trunk/
   trunk/src/db/upgrade-db.php
Log:
Removed PHP4 compat code

Modified: trunk/src/db/upgrade-db.php
===================================================================
--- trunk/src/db/upgrade-db.php	2011-11-17 19:51:08 UTC (rev 14829)
+++ trunk/src/db/upgrade-db.php	2011-11-17 19:51:16 UTC (rev 14830)
@@ -9,32 +9,6 @@
 require_once dirname(__FILE__).'/../www/env.inc.php';
 require_once $gfcommon.'include/pre.php';
 
-/**
-* Sets up CLI environment based on SAPI and PHP version
-*/
-if (version_compare(phpversion(), '4.3.0', '<') || php_sapi_name() == 'cgi') {
-   // Handle output buffering
-   while (@ob_end_flush());
-   ob_implicit_flush(TRUE);
-
-   // PHP ini settings
-   set_time_limit(0);
-   ini_set('track_errors', TRUE);
-   ini_set('html_errors', FALSE);
-   ini_set('magic_quotes_runtime', FALSE);
-
-   // Define stream constants
-   define('STDIN', fopen('php://stdin', 'r'));
-   define('STDOUT', fopen('php://stdout', 'w'));
-   define('STDERR', fopen('php://stderr', 'w'));
-
-   // Close the streams on script termination
-   register_shutdown_function(
-       create_function('',
-       'fclose(STDIN); fclose(STDOUT); fclose(STDERR); return true;')
-       );
-}
-
 $db_path = dirname(__FILE__).'/';
 $date = -1;
 $version = '';




More information about the Fusionforge-commits mailing list