Skip to content

Commit 5b5cc32

Browse files
committed
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 bf11d5b commit 5b5cc32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/unit/storage/sfCacheSessionStorageTest.php

+2
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

1719
require_once $_test_dir.'/../lib/vendor/lime/lime.php';

0 commit comments

Comments
 (0)