source: src/router/php7/ext/session/tests/bug66481-win32.phpt @ 30549

Last change on this file since 30549 was 30549, checked in by brainslayer, 11 months ago

php 7

File size: 533 bytes
Line 
1--TEST--
2Bug #66481: Calls to session_name() segfault when session.name is null, Windows.
3--INI--
4session.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
11var_dump(session_name("foo"));
12var_dump(session_name("bar"));
13--EXPECTF--
14Warning: PHP Startup: session.name cannot be a numeric or empty '' in Unknown on line 0
15string(9) "PHPSESSID"
16string(3) "foo"
17PHP Warning:  PHP Startup: session.name cannot be a numeric or empty '' in Unknown on line 0
Note: See TracBrowser for help on using the repository browser.