diff options
author | Ondřej Surý <ondrej@sury.org> | 2012-02-01 21:25:15 +0100 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2012-02-02 16:22:43 +0100 |
commit | b6284c07d03a04d737467c0bba1dc268be85c9e1 (patch) | |
tree | 7bb7d6362aec024912ce83d0717d656ffad3db66 /ext/session/tests/bug55688.phpt | |
parent | 047c0f130629403041f97af7705453f5ff33df9f (diff) | |
download | php-b6284c07d03a04d737467c0bba1dc268be85c9e1.tar.gz |
Imported Upstream version 5.4.0~rc6
Diffstat (limited to 'ext/session/tests/bug55688.phpt')
-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 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 |