2 Test session_cache_limiter() function : error functionality
4 <?php include('skipif.inc'); ?>
11 * Prototype : string session_cache_limiter([string $cache_limiter])
12 * Description : Get and/or set the current cache limiter
13 * Source code : ext/session/session.c
16 echo "*** Testing session_cache_limiter() : error functionality ***\n";
18 // Get an unset variable
24 public function __toString() {
25 return "Hello World!";
33 $fp = fopen(__FILE__, "r");
35 // Unexpected values to be passed as arguments
65 // Invalid string data
74 /*22*/ @$undefined_var,
82 foreach($inputs as $input) {
83 echo "\n-- Iteration $iterator --\n";
84 var_dump(session_cache_limiter($input));
93 *** Testing session_cache_limiter() : error functionality ***
117 string(12) "123456789000"
120 string(13) "1.23456789E-9"
156 string(12) "Hello World!"
159 string(12) "Hello World!"