xref: /PHP-8.1/tests/basic/bug20539.phpt (revision 74859783)
1--TEST--
2Bug #20539 (PHP CLI Segmentation Fault)
3--EXTENSIONS--
4session
5--SKIPIF--
6<?php if (file_exists(__DIR__. '/sess_' .session_id())) unlink(__DIR__. '/sess_' .session_id()); ?>
7--INI--
8session.auto_start=1
9session.save_handler=files
10session.save_path=./tests/basic/
11--FILE--
12<?php
13    print "good :)\n";
14    $filename = __DIR__ . '/sess_' . session_id();
15    var_dump(file_exists($filename));
16    @unlink($filename);
17?>
18--EXPECT--
19good :)
20bool(true)
21