summaryrefslogtreecommitdiff
path: root/ext/session/tests/bug55688.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/session/tests/bug55688.phpt')
-rw-r--r--ext/session/tests/bug55688.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/session/tests/bug55688.phpt b/ext/session/tests/bug55688.phpt
new file mode 100644
index 000000000..8db48384a
--- /dev/null
+++ b/ext/session/tests/bug55688.phpt
@@ -0,0 +1,15 @@
+--TEST--
+Bug #55688 (Crash when calling SessionHandler::gc())
+--SKIPIF--
+<?php include('skipif.inc'); ?>
+--INI--
+html_errors=0
+session.save_handler=files
+--FILE--
+<?php
+ini_set('session.save_handler', 'files');
+$x = new SessionHandler;
+$x->gc(1);
+?>
+--EXPECTF--
+Warning: SessionHandler::gc(): Parent session handler is not open in %s on line %d