File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / session / tests / session_set_cookie_params_basic.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:01 2012 UTC (12 years, 4 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

    1: --TEST--
    2: Test session_set_cookie_params() function : basic functionality
    3: --SKIPIF--
    4: <?php include('skipif.inc'); ?>
    5: --FILE--
    6: <?php
    7: 
    8: ob_start();
    9: 
   10: /* 
   11:  * Prototype : void session_set_cookie_params(int $lifetime [, string $path [, string $domain [, bool $secure [, bool $httponly]]]])
   12:  * Description : Set the session cookie parameters
   13:  * Source code : ext/session/session.c 
   14:  */
   15: 
   16: echo "*** Testing session_set_cookie_params() : basic functionality ***\n";
   17: 
   18: var_dump(session_set_cookie_params(3600));
   19: var_dump(session_start());
   20: var_dump(session_set_cookie_params(1800));
   21: var_dump(session_destroy());
   22: var_dump(session_set_cookie_params(1234567890));
   23: 
   24: echo "Done";
   25: ob_end_flush();
   26: ?>
   27: --EXPECTF--
   28: *** Testing session_set_cookie_params() : basic functionality ***
   29: NULL
   30: bool(true)
   31: NULL
   32: bool(true)
   33: NULL
   34: Done
   35: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>