1--TEST-- 2Test session_name() function : null byte in session name 3--EXTENSIONS-- 4session 5--SKIPIF-- 6<?php include('skipif.inc'); ?> 7--FILE-- 8<?php 9 10try { 11 var_dump(session_name("AB\0CD")); 12 var_dump(session_start()); 13} catch (ValueError $e) { 14 echo $e->getMessage(). "\n"; 15} 16 17echo "Done"; 18?> 19--EXPECT-- 20session_name(): Argument #1 ($name) must not contain any null bytes 21Done 22