ru_php/ext/session/tests/bug80774.phpt

16 lines
286 B
PHP

--TEST--
Bug #80774 (session_name() problem with backslash)
--EXTENSIONS--
session
--INI--
session.use_strict_mode=0
--FILE--
<?php
session_name("foo\\bar");
session_id('12345');
session_start();
?>
--EXPECTHEADERS--
Set-Cookie: foo\bar=12345; path=/; HttpOnly; SameSite=Lax
--EXPECT--