xref: /PHP-8.2/ext/session/tests/031.phpt (revision b5a14e6c)
1--TEST--
2setting hash_function to sha512 and hash_bits_per_character > 4 should not crash
3--EXTENSIONS--
4session
5--SKIPIF--
6<?php include('skipif.inc'); ?>
7--INI--
8session.use_cookies=0
9session.cache_limiter=
10session.serialize_handler=php
11session.save_handler=files
12session.hash_function=sha512
13session.hash_bits_per_character=5
14--FILE--
15<?php
16error_reporting(E_ALL);
17
18session_start();
19session_regenerate_id(TRUE);
20
21print "I live\n";
22?>
23--EXPECT--
24I live
25