Skip to content

Commit

Permalink
Fix sfCacheSessionStorageTest with PHP>=7.2
Browse files Browse the repository at this point in the history
From PHP 7.2 onwards, session functions are more strict and may not work if output/headers have already been sent out. Using output buffering prevents this issue.
  • Loading branch information
mentalstring authored and thePanz committed Jan 12, 2023
1 parent fb4b42d commit 9abeafd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unit/storage/sfCacheSessionStorageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

require_once(__DIR__.'/../../bootstrap/functional.php');

ob_start();

$_test_dir = realpath(__DIR__.'/../../');
require_once($_test_dir.'/../lib/vendor/lime/lime.php');

Expand Down

0 comments on commit 9abeafd

Please sign in to comment.