com php-src: add test for bug #69111: ext/session/tests/bug69111.phpt
| From: | Ferenc Kovacs | Date: | Tue, 02 Feb 2016 23:58:14 +0000 |
| Subject: | com php-src: add test for bug #69111: ext/session/tests/bug69111.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-90923@lists.php.net to get a copy of this message | ||
Commit: e15b75671cf6ab67a0b6b33fc8798e2adefb39b5
Author: Anatol Belski <ab@php.net> Fri, 29 Jan 2016 12:27:35 +0100
Committer: Ferenc Kovacs <tyrael@php.net> Wed, 3 Feb 2016 00:58:14 +0100
Parents: a793b709086eed655bc98f933d838b8679b28920
Branches: PHP-5.6.18
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e15b75671cf6ab67a0b6b33fc8798e2adefb39b5
Log:
add test for bug #69111
Bugs:
https://bugs.php.net/69111
Changed paths:
A ext/session/tests/bug69111.phpt
Diff:
diff --git a/ext/session/tests/bug69111.phpt b/ext/session/tests/bug69111.phpt
new file mode 100644
index 0000000..5fc6e2c
--- /dev/null
+++ b/ext/session/tests/bug69111.phpt
@@ -0,0 +1,20 @@
+--TEST--
+Bug #69111 Crash in SessionHandler::read()
+--SKIPIF--
+<?php include('skipif.inc'); ?>
+--FILE--
+<?php
+$sh = new SessionHandler;
+session_set_save_handler($sh);
+
+$savePath = ini_get('session.save_path');
+$sessionName = ini_get('session.name');
+
+// session_start(); // Uncommenting this makes it not crash when reading the session (see below),
but it will not return any data.
+
+$sh->open($savePath, $sessionName);
+$sh->write("foo", "bar");
+var_dump($sh->read(@$id));
+?>
+--EXPECTF--
+bool(false)