summaryrefslogtreecommitdiff
path: root/ext/session/tests/bug60860.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/session/tests/bug60860.phpt')
-rw-r--r--ext/session/tests/bug60860.phpt17
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/session/tests/bug60860.phpt b/ext/session/tests/bug60860.phpt
new file mode 100644
index 0000000..8318586
--- /dev/null
+++ b/ext/session/tests/bug60860.phpt
@@ -0,0 +1,17 @@
+--TEST--
+Bug #60860 (session.save_handler=user without defined function core dumps)
+--SKIPIF--
+<?php include('skipif.inc'); ?>
+--INI--
+session.save_handler=user
+--FILE--
+<?php
+
+session_start();
+echo "ok\n";
+
+?>
+--EXPECTF--
+Warning: session_start(): user session functions not defined in %s on line 3
+
+Fatal error: session_start(): Failed to initialize storage module: user (path:%s) in %s on line 3