com php-src: fix test: ext/session/tests/bug72681.phpt
| From: | Stanislav Malyshev | Date: | Wed, 17 Aug 2016 08:12:33 +0000 |
| Subject: | com php-src: fix test: ext/session/tests/bug72681.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-93844@lists.php.net to get a copy of this message | ||
Commit: ed9d916c28b042d276a28998f92eb7e6cc56025a
Author: Stanislav Malyshev <stas@php.net> Wed, 17 Aug 2016 01:12:33 -0700
Parents: e0f9fbdfa61012101de7f4a8653ca5538c404a71
Branches: PHP-7.0
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ed9d916c28b042d276a28998f92eb7e6cc56025a
Log:
fix test
Changed paths:
M ext/session/tests/bug72681.phpt
Diff:
diff --git a/ext/session/tests/bug72681.phpt b/ext/session/tests/bug72681.phpt
index ca38b07..ceca6ec 100644
--- a/ext/session/tests/bug72681.phpt
+++ b/ext/session/tests/bug72681.phpt
@@ -6,7 +6,8 @@ Bug #72681: PHP Session Data Injection Vulnerability
<?php
ini_set('session.serialize_handler', 'php');
session_start();
-$_SESSION['_SESSION'] = 'ryat|O:8:"stdClass":0:{}';
+$GLOBALS['ryat'] = $GLOBALS;
+$_SESSION['ryat'] = 'ryat|O:8:"stdClass":0:{}';
session_write_close();
session_start();
var_dump($_SESSION);