summaryrefslogtreecommitdiff
path: root/ext/session/tests/bug80774.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/session/tests/bug80774.phpt')
-rw-r--r--ext/session/tests/bug80774.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/session/tests/bug80774.phpt b/ext/session/tests/bug80774.phpt
new file mode 100644
index 0000000000..2ce07263f2
--- /dev/null
+++ b/ext/session/tests/bug80774.phpt
@@ -0,0 +1,15 @@
+--TEST--
+Bug #80774 (session_name() problem with backslash)
+--SKIPIF--
+<?php
+if (!extension_loaded('session')) die("skip session extension not available");
+?>
+--FILE--
+<?php
+session_name("foo\\bar");
+session_id('12345');
+session_start();
+?>
+--EXPECTHEADERS--
+Set-Cookie: foo\bar=12345; path=/
+--EXPECT--