Ignore:
Timestamp:
Aug 27, 2015 2:35:55 AM (9 years ago)
Author:
anonymous
Message:

Detecting CLI also using php_sapi_name()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Prefs.inc.php

    r541 r546  
    175175    {
    176176        // CLI scripts can't use prefs stored in HTTP-based protocols.
    177         if (defined('_CLI')
     177        if ((defined('_CLI') || 'cli' === php_sapi_name())
    178178        && isset($params['storagetype'])
    179179        && in_array($params['storagetype'], array('cookie', 'session'))) {
Note: See TracChangeset for help on using the changeset viewer.