xref: /php-src/ext/session/tests/gh13891.phpt (revision c5bce0d8)
1--TEST--
2GH-13891 (memleak and segfault when using ini_set with session.trans_sid_hosts)
3--INI--
4session.use_cookies=0
5session.use_only_cookies=0
6session.use_trans_sid=1
7session.trans_sid_hosts=php.net
8--EXTENSIONS--
9session
10--SKIPIF--
11<?php include('skipif.inc'); ?>
12--FILE--
13<?php
14// We *must* set it here because the bug only triggers on a runtime edit
15ini_set('session.trans_sid_hosts','php.net');
16?>
17--EXPECTF--
18Deprecated: PHP Startup: Disabling session.use_only_cookies INI setting is deprecated in Unknown on line 0
19
20Deprecated: PHP Startup: Enabling session.use_trans_sid INI setting is deprecated in Unknown on line 0
21
22Deprecated: PHP Startup: Usage of session.trans_sid_hosts INI setting is deprecated in Unknown on line 0
23
24Deprecated: ini_set(): Usage of session.trans_sid_hosts INI setting is deprecated in %s on line 3
25
26Deprecated: PHP Request Shutdown: Usage of session.trans_sid_hosts INI setting is deprecated in Unknown on line 0
27