1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 17:52:16 +01:00
Files
archived-php-src/ext/session/tests/bug74833.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

23 lines
382 B
PHP

--TEST--
Bug #74833 Session module number is uninitialized when SID is reset
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php
ob_start();
session_start();
session_regenerate_id();
$c = get_defined_constants(true);
/* Ensure the SID constant has correct module number. */
var_dump(isset($c['session']['SID']));
ob_end_flush();
?>
==DONE==
--EXPECT--
bool(true)
==DONE==