xref: /PHP-7.4/ext/session/tests/029.phpt (revision 0c9bfa96)
1--TEST--
2session_decode(); should not segfault
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--INI--
6session.use_cookies=0
7session.cache_limiter=
8--FILE--
9<?php
10error_reporting(E_ALL);
11
12session_decode("garbage data and no session started");
13session_decode("userid|s:5:\"mazen\";chatRoom|s:1:\"1\";");
14print "I live\n";
15?>
16--EXPECTF--
17Warning: session_decode(): Session is not active. You cannot decode session data in %s on line %d
18
19Warning: session_decode(): Session is not active. You cannot decode session data in %s on line %d
20I live
21