com php-src: fix test: ext/session/tests/bug72681.phpt
| From: | Anatol Belski | Date: | Wed, 17 Aug 2016 11:53:22 +0000 |
| Subject: | com php-src: fix test: ext/session/tests/bug72681.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-93887@lists.php.net to get a copy of this message | ||
Commit: 8d7766a948999b990dbd13f96fa845a26d6f8f66
Author: Stanislav Malyshev <stas@php.net> Wed, 17 Aug 2016 01:12:33 -0700
Committer: Anatol Belski <ab@php.net> Wed, 17 Aug 2016 13:53:22 +0200
Parents: 758a0cd8b3941935b5ec10256c336544e0d6ad41
Branches: PHP-7.0.10
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8d7766a948999b990dbd13f96fa845a26d6f8f66
Log:
fix test
(cherry picked from commit ed9d916c28b042d276a28998f92eb7e6cc56025a)
Changed paths:
A ext/session/tests/bug72681.phpt
Diff:
diff --git a/ext/session/tests/bug72681.phpt b/ext/session/tests/bug72681.phpt
new file mode 100644
index 0000000..ceca6ec
--- /dev/null
+++ b/ext/session/tests/bug72681.phpt
@@ -0,0 +1,17 @@
+--TEST--
+Bug #72681: PHP Session Data Injection Vulnerability
+--SKIPIF--
+<?php include('skipif.inc'); ?>
+--FILE--
+<?php
+ini_set('session.serialize_handler', 'php');
+session_start();
+$GLOBALS['ryat'] = $GLOBALS;
+$_SESSION['ryat'] = 'ryat|O:8:"stdClass":0:{}';
+session_write_close();
+session_start();
+var_dump($_SESSION);
+?>
+--EXPECT--
+array(0) {
+}