mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
* ext/session: only return false when could not encode session at all This also fixes bug 71162
31 lines
528 B
PHP
31 lines
528 B
PHP
--TEST--
|
|
Test session_encode() function : variation
|
|
--EXTENSIONS--
|
|
session
|
|
--SKIPIF--
|
|
<?php include('skipif.inc'); ?>
|
|
--INI--
|
|
session.auto_start=1
|
|
--FILE--
|
|
<?php
|
|
|
|
ob_start();
|
|
|
|
echo "*** Testing session_encode() : variation ***\n";
|
|
|
|
var_dump(session_encode());
|
|
var_dump(session_destroy());
|
|
var_dump(session_encode());
|
|
|
|
echo "Done";
|
|
ob_end_flush();
|
|
?>
|
|
--EXPECTF--
|
|
*** Testing session_encode() : variation ***
|
|
string(0) ""
|
|
bool(true)
|
|
|
|
Warning: session_encode(): Cannot encode non-existent session in %s on line %d
|
|
bool(false)
|
|
Done
|