Changeset 699 for trunk/bin


Ignore:
Timestamp:
Aug 8, 2019 10:38:24 PM (5 years ago)
Author:
anonymous
Message:

Add support for PHP >=5.6 <=7.3. Add MySQL polyfill.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/init_codebase_tables.cli.php

    r601 r699  
    172172            // DBSessionHandler!
    173173
    174             // We need to hack the app to allow sessions to run in a CLI.
    175             $app->stop();
    176             $app->cli = false;
    177             $app->setParam(array('enable_session' => true));
    178             $app->start();
     174            if (version_compare(PHP_VERSION, '7.0.0', '<')) {
     175                // We need to hack the app to allow sessions to run in a CLI.
     176                $app->stop();
     177                $app->cli = false;
     178                $app->setParam(array('enable_session' => true));
     179                $app->start();
     180            }
    179181
    180182            if (!isset($opt['c'])) {
Note: See TracChangeset for help on using the changeset viewer.