]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Mon, 21 Jul 2003 21:47:53 +0000 (21:47 +0000)
committerSVN Migration <svn@php.net>
Mon, 21 Jul 2003 21:47:53 +0000 (21:47 +0000)
ext/session/tests/bug24592.phpt [new file with mode: 0644]

diff --git a/ext/session/tests/bug24592.phpt b/ext/session/tests/bug24592.phpt
new file mode 100644 (file)
index 0000000..9f94c3b
--- /dev/null
@@ -0,0 +1,33 @@
+--TEST--
+Bug #24592 (crash when multiple NULL values are being stored)
+--INI--
+register_globals=0
+html_errors=0
+--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
+}