summaryrefslogtreecommitdiff
path: root/ext/session/tests/bug68063.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/session/tests/bug68063.phpt')
-rw-r--r--ext/session/tests/bug68063.phpt14
1 files changed, 5 insertions, 9 deletions
diff --git a/ext/session/tests/bug68063.phpt b/ext/session/tests/bug68063.phpt
index ec3a70d156..d3da470d06 100644
--- a/ext/session/tests/bug68063.phpt
+++ b/ext/session/tests/bug68063.phpt
@@ -3,22 +3,18 @@ Bug #68063 (Empty session IDs do still start sessions)
--SKIPIF--
<?php include('skipif.inc'); ?>
--INI--
-session.use_strict_mode=0
-session.hash_function=1
-session.hash_bits_per_character=4
--FILE--
<?php
-// Empty session ID may happen by browser bugs
-
// Could also be set with a cookie like "PHPSESSID=; path=/"
session_id('');
-// Start the session with empty string should result in new session ID
+// Will still start the session and return true
var_dump(session_start());
-// Returns newly created session ID
+// Returns an empty string
var_dump(session_id());
?>
--EXPECTF--
-bool(true)
-string(40) "%s"
+Warning: session_start(): Cannot start session with empty session ID in %s on line %d
+bool(false)
+string(0) ""