diff options
Diffstat (limited to 'ext/session/tests/bug24592.phpt')
| -rw-r--r-- | ext/session/tests/bug24592.phpt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/ext/session/tests/bug24592.phpt b/ext/session/tests/bug24592.phpt new file mode 100644 index 0000000..9f6c395 --- /dev/null +++ b/ext/session/tests/bug24592.phpt @@ -0,0 +1,35 @@ +--TEST-- +Bug #24592 (crash when multiple NULL values are being stored) +--SKIPIF-- +<?php include('skipif.inc'); ?> +--INI-- +html_errors=0 +session.save_handler=files +--FILE-- +<?php +@session_start(); + +$foo = $_SESSION['foo']; +$bar = $_SESSION['bar']; + +var_dump($foo, $bar, $_SESSION); + +$_SESSION['foo'] = $foo; +$_SESSION['bar'] = $bar; + +var_dump($_SESSION); +?> +--EXPECTF-- +Notice: Undefined index: foo in %s on line %d + +Notice: Undefined index: bar in %s on line %d +NULL +NULL +array(0) { +} +array(2) { + ["foo"]=> + NULL + ["bar"]=> + NULL +} |
