summaryrefslogtreecommitdiff
path: root/ext/standard/tests/serialize/bug72663_3.phpt
blob: 37d67706f2f1bfd252c96fd8a300146c5ba7c429 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #72663 (3): If unserialization fails, don't initialize the session with the result
--SKIPIF--
<?php if (!extension_loaded('session')) die('skip Session extension required'); ?>
--INI--
session.serialize_handler=php_serialize
--FILE--
<?php
session_start();
$sess = 'O:9:"Exception":2:{s:7:"'."\0".'*'."\0".'file";R:1;}';
session_decode($sess);
var_dump($_SESSION);
?>
--EXPECTF--
Notice: session_decode(): Unexpected end of serialized data in %s on line %d
array(0) {
}