Skip to content

Commit

Permalink
Dev: Get gc_maxlifetime of Travis (test)
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jun 19, 2018
1 parent 2c15e48 commit 41fc916
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -51,7 +51,7 @@ before_script:
- sudo service apache2 restart

# Check for syntax errors.
- find application/ -type f -name "*.php" -exec php -l {} \; | grep -v 'No syntax errors' || true
#- find application/ -type f -name "*.php" -exec php -l {} \; | grep -v 'No syntax errors' || true

# Test server.
- wget localhost
Expand Down
11 changes: 7 additions & 4 deletions tests/TestBaseClass.php
Expand Up @@ -36,10 +36,13 @@ public static function setUpBeforeClass()
{
parent::setUpBeforeClass();

//$lt = ini_get('session.gc_maxlifetime');
//var_dump('gc_maxlifetime = ' . $lt);
session_destroy();
session_start();
$lt = ini_get('session.gc_maxlifetime');
var_dump('gc_maxlifetime = ' . $lt);
die;

// This did not fix the langchang test failure on Travis.
//session_destroy();
//session_start();

self::$testHelper = new TestHelper();

Expand Down

0 comments on commit 41fc916

Please sign in to comment.