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