diff options
Diffstat (limited to 'ext/session/tests/bug72681.phpt')
-rw-r--r-- | ext/session/tests/bug72681.phpt | 7 |
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:{}" +} |