summaryrefslogtreecommitdiff
path: root/ext/session/tests/bug73100.phpt
blob: 3f3e92561a56ae0b1fd5a52bb3689c1acff0a83b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
Bug #73100 (session_destroy null dereference in ps_files_path_create)
--SKIPIF--
<?php
if (!extension_loaded('session')) die('skip session extension not available');
?>
--INI--
session.save_path=
session.save_handler=files
--FILE--
<?php
ob_start();
var_dump(session_start());
session_module_name("user");
var_dump(session_destroy());
?>
===DONE===
--EXPECTF--
bool(true)

Warning: session_module_name(): A session is active. You cannot change the session module's ini settings at this time in %s on line %d

Warning: session_destroy(): Session object destruction failed in %s on line %d
bool(false)
===DONE===