mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

* Unify headers already sent errors Now whenever we need to check where headers were already sent in ext/session, we call a single location that prints where, keeping it consistent output wise. * Unify session aready started errors Similar to the one for headers. * Also change session active checks too This usually go hand in hand with the headers already sent checks, but is in a separate commit because of the amount of tests it changes.
32 lines
762 B
PHP
32 lines
762 B
PHP
--TEST--
|
|
Test session_set_cookie_params() function : basic functionality
|
|
--EXTENSIONS--
|
|
session
|
|
--SKIPIF--
|
|
<?php include('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
ob_start();
|
|
|
|
echo "*** Testing session_set_cookie_params() : basic functionality ***\n";
|
|
|
|
var_dump(session_set_cookie_params(3600));
|
|
var_dump(session_start());
|
|
var_dump(session_set_cookie_params(1800));
|
|
var_dump(session_destroy());
|
|
var_dump(session_set_cookie_params(1234567890));
|
|
|
|
echo "Done";
|
|
ob_end_flush();
|
|
?>
|
|
--EXPECTF--
|
|
*** Testing session_set_cookie_params() : basic functionality ***
|
|
bool(true)
|
|
bool(true)
|
|
|
|
Warning: session_set_cookie_params(): Session cookie parameters cannot be changed when a session is active (started from %s on line %d) in %s on line %d
|
|
bool(false)
|
|
bool(true)
|
|
bool(true)
|
|
Done
|