File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / session / tests / bug66481-win32.phpt
Revision 1.1.1.1 (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: Bug #66481: Calls to session_name() segfault when session.name is null, Windows.
    3: --INI--
    4: session.name=
    5: --SKIPIF--
    6: <?php include('skipif.inc'); ?>
    7: <?php if(substr(PHP_OS, 0, 3) != "WIN") die("skip Windows only"); ?>
    8: --FILE--
    9: <?php
   10: 
   11: var_dump(session_name("foo"));
   12: var_dump(session_name("bar"));
   13: --EXPECTF--
   14: Warning: PHP Startup: session.name cannot be a numeric or empty '' in Unknown on line 0
   15: string(9) "PHPSESSID"
   16: string(3) "foo"

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