Skip to content

Commit 4eb9f95

Browse files
mentalstringthePanz
authored andcommitted
Fix sfCacheSessionStorageTest with PHP>=7.2
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.
1 parent 3f508e2 commit 4eb9f95

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/unit/storage/sfCacheSessionStorageTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

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

15+
ob_start();
16+
1517
$_test_dir = realpath(__DIR__.'/../../');
1618
require_once($_test_dir.'/../lib/vendor/lime/lime.php');
1719

0 commit comments

Comments
 (0)