]> granicus.if.org Git - php/commitdiff
Add test for bug #55688
authorXinchen Hui <laruence@php.net>
Wed, 14 Sep 2011 05:02:50 +0000 (05:02 +0000)
committerXinchen Hui <laruence@php.net>
Wed, 14 Sep 2011 05:02:50 +0000 (05:02 +0000)
ext/session/tests/bug55688.phpt [new file with mode: 0644]

diff --git a/ext/session/tests/bug55688.phpt b/ext/session/tests/bug55688.phpt
new file mode 100644 (file)
index 0000000..8db4838
--- /dev/null
@@ -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