diff options
| author | Xinchen Hui <laruence@php.net> | 2011-09-14 05:02:50 +0000 |
|---|---|---|
| committer | Xinchen Hui <laruence@php.net> | 2011-09-14 05:02:50 +0000 |
| commit | 5412b2885ddd0668d056b58f477fa715653dfe4f (patch) | |
| tree | f56f4768b880605ba45aea6d1172a91dbe9925a7 | |
| parent | ed4251860afec3e642528250f3e097ac4931d44a (diff) | |
| download | php-git-5412b2885ddd0668d056b58f477fa715653dfe4f.tar.gz | |
Add test for bug #55688
| -rw-r--r-- | ext/session/tests/bug55688.phpt | 15 |
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 0000000000..8db48384af --- /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 |
