File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / session / tests / 031.phpt
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Sun Jun 15 20:03:55 2014 UTC (10 years ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29, HEAD
php 5.4.29

    1: --TEST--
    2: setting hash_function to sha512 and hash_bits_per_character > 4 should not crash
    3: --SKIPIF--
    4: <?php include('skipif.inc'); ?>
    5: <?php if (!extension_loaded('hash')) die('skip hash extension not available'); ?>
    6: --INI--
    7: session.use_cookies=0
    8: session.cache_limiter=
    9: session.serialize_handler=php
   10: session.save_handler=files
   11: session.hash_function=sha512
   12: session.hash_bits_per_character=5
   13: --FILE--
   14: <?php
   15: error_reporting(E_ALL);
   16: 
   17: session_start();
   18: session_regenerate_id(TRUE);
   19: 
   20: print "I live\n";
   21: ?>
   22: --EXPECT--
   23: I live

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