--TEST-- Test session_encode() function : error functionality --EXTENSIONS-- session --SKIPIF-- --FILE-- getMessage(), "\n"; } var_dump(session_encode()); var_dump(session_destroy()); $iterator++; }; echo "Done"; ob_end_flush(); ?> --EXPECTF-- *** Testing session_encode() : error functionality *** -- Iteration 1 -- bool(true) Warning: session_encode(): Skipping numeric key 0 in %s on line %d bool(false) bool(true) -- Iteration 2 -- bool(true) Warning: session_encode(): Skipping numeric key 1 in %s on line %d bool(false) bool(true) -- Iteration 3 -- bool(true) Warning: session_encode(): Skipping numeric key 12345 in %s on line %d bool(false) bool(true) -- Iteration 4 -- bool(true) Warning: session_encode(): Skipping numeric key -2345 in %s on line %d bool(false) bool(true) -- Iteration 5 -- bool(true) string(21) "|s:12:"Hello World!";" bool(true) -- Iteration 6 -- bool(true) string(28) "Nothing|s:12:"Hello World!";" bool(true) Done