xref: /PHP-8.0/ext/session/tests/bug80774.phpt (revision d7c98ca1)
1--TEST--
2Bug #80774 (session_name() problem with backslash)
3--SKIPIF--
4<?php
5if (!extension_loaded('session')) die("skip session extension not available");
6?>
7--FILE--
8<?php
9session_name("foo\\bar");
10session_id('12345');
11session_start();
12?>
13--EXPECTHEADERS--
14Set-Cookie: foo\bar=12345; path=/
15--EXPECT--
16