Annotation of embedaddon/php/ext/session/tests/session_cache_expire_variation1.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test session_cache_expire() function : variation
        !             3: --SKIPIF--
        !             4: <?php include('skipif.inc'); ?>
        !             5: --INI--
        !             6: session.cache_expire=360
        !             7: --FILE--
        !             8: <?php
        !             9: 
        !            10: ob_start();
        !            11: 
        !            12: /* 
        !            13:  * Prototype : int session_cache_expire([int $new_cache_expire])
        !            14:  * Description : Return current cache expire
        !            15:  * Source code : ext/session/session.c 
        !            16:  */
        !            17: 
        !            18: echo "*** Testing session_cache_expire() : variation ***\n";
        !            19: 
        !            20: var_dump(session_cache_expire());
        !            21: var_dump(session_cache_expire(1234567890));
        !            22: var_dump(session_cache_expire(180));
        !            23: var_dump(session_start());
        !            24: var_dump(session_cache_expire());
        !            25: var_dump(session_destroy());
        !            26: var_dump(session_cache_expire());
        !            27: 
        !            28: echo "Done";
        !            29: ob_end_flush();
        !            30: ?>
        !            31: --EXPECTF--
        !            32: *** Testing session_cache_expire() : variation ***
        !            33: int(360)
        !            34: int(360)
        !            35: int(1234567890)
        !            36: bool(true)
        !            37: int(180)
        !            38: bool(true)
        !            39: int(180)
        !            40: Done
        !            41: 

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