php-src/ext/session/tests/029.phpt
Yasuo Ohgaki 0c9bfa96b2 Make session_decode return FALSE when it fails.
Fix a test.
Use proper types.
2015-01-25 15:26:00 +09:00

21 lines
535 B
PHP

--TEST--
session_decode(); should not segfault
--SKIPIF--
<?php include('skipif.inc'); ?>
--INI--
session.use_cookies=0
session.cache_limiter=
--FILE--
<?php
error_reporting(E_ALL);
session_decode("garbage data and no session started");
session_decode("userid|s:5:\"mazen\";chatRoom|s:1:\"1\";");
print "I live\n";
?>
--EXPECTF--
Warning: session_decode(): Session is not active. You cannot decode session data in %s on line %d
Warning: session_decode(): Session is not active. You cannot decode session data in %s on line %d
I live