summaryrefslogtreecommitdiff
path: root/ext/session/tests/bug72681.phpt
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2016-08-18 15:37:15 +0800
committerXinchen Hui <laruence@gmail.com>2016-08-18 15:37:15 +0800
commita3740dadecec9d47cde6055996e2ca13dd10c4f6 (patch)
tree36c336a6bf2b1ef6c4c10ee7f897f2ebe3c7c029 /ext/session/tests/bug72681.phpt
parent1685282a158e5c92a7e84aed703355d27774d018 (diff)
downloadphp-git-a3740dadecec9d47cde6055996e2ca13dd10c4f6.tar.gz
Remove outdate checks
Diffstat (limited to 'ext/session/tests/bug72681.phpt')
-rw-r--r--ext/session/tests/bug72681.phpt7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/session/tests/bug72681.phpt b/ext/session/tests/bug72681.phpt
index ceca6ecc33..4752767d50 100644
--- a/ext/session/tests/bug72681.phpt
+++ b/ext/session/tests/bug72681.phpt
@@ -6,12 +6,17 @@ Bug #72681: PHP Session Data Injection Vulnerability
<?php
ini_set('session.serialize_handler', 'php');
session_start();
-$GLOBALS['ryat'] = $GLOBALS;
+$GLOBALS['ryat'] = $_SESSION;
$_SESSION['ryat'] = 'ryat|O:8:"stdClass":0:{}';
session_write_close();
session_start();
+var_dump($ryat);
var_dump($_SESSION);
?>
--EXPECT--
array(0) {
}
+array(1) {
+ ["ryat"]=>
+ string(24) "ryat|O:8:"stdClass":0:{}"
+}