Ignore:
Timestamp:
07/18/18 14:22:10 (17 months ago)
Author:
plg
Message:

Change required PHP version to 5.3.0

No longer tries to configure PHP 5 with htaccess (this feature may come back for PHP 7 later)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/netinstall/trunk/piwigo-netinstall.php

    r30031 r31936  
    1717define('DC_LOADER_SERVICE','http://piwigo.org/download/netinstall/'); 
    1818define('DC_LOADER_ARCHIVE','http://piwigo.org/download/dlcounter.php?code=latest'); 
     19define('REQUIRED_PHP_VERSION', '5.6.31'); 
    1920 
    2021$available_languages = array( 
     
    6566 
    6667$step = !empty($_REQUEST['step']) ? (integer)$_REQUEST['step'] : 1; 
    67 $got_php5 = version_compare(PHP_VERSION, '5.2', '>='); 
     68$got_php5 = version_compare(PHP_VERSION, REQUIRED_PHP_VERSION, '>='); 
    6869if (!$got_php5 && $step != 2) 
    6970{ 
     
    441442    elseif (!$got_php5) 
    442443    { 
    443       writeMessage('notice',l10n('PHP 5 is required'), array( 
     444      writeMessage('notice',sprintf(l10n('PHP %s is required'), REQUIRED_PHP_VERSION), array( 
    444445        sprintf(l10n('It appears your webhost is currently running PHP %s.'), PHP_VERSION), 
    445         l10n('NetInstall may try to switch your configuration to PHP 5 by creating or modifying a .htaccess file.'), 
    446         l10n('Note you can change your configuration by yourself and restart NetInstall after that.') 
     446        // l10n('NetInstall may try to switch your configuration to PHP 5 by creating or modifying a .htaccess file.'), 
     447        // l10n('Note you can change your configuration by yourself and restart NetInstall after that.') 
    447448      )); 
    448       nextAction(l10n('Try to configure PHP 5'),2); 
     449 
     450      // 2018-07-18 : Piwigo 2.9.4 is out and now requires PHP 5.3 instead of 5.2. 
     451      // I realize NetInstall has this procedure which try to force PHP 5 instead 
     452      // of PHP 4. This procedure has become useless in 2018. I comment it for now, 
     453      // because we may need it in a few years when PHP 7 will become mandatory. 
     454 
     455      // nextAction(l10n('Try to configure PHP 5'),2); 
    449456    } 
    450457    else 
Note: See TracChangeset for help on using the changeset viewer.