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