1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/session/tests/bug74936.phpt
Michael Orlitzky 092e090cf0 ext/session/tests: more lenient expected output checks. (#11631)
Several session tests incidentally check the values of INI variables
like session.name and session.save_path. This isn't the point of the
tests, and it can cause spurious failures if (for example) you want to
override your temporary directory while testing. So here, we make the
expected output patterns more lenient.
2023-07-10 09:25:25 +01:00

21 lines
330 B
PHP

--TEST--
Bug #74936 session_cache_expire() triggers a warning in read mode.
--EXTENSIONS--
session
--SKIPIF--
<?php
include('skipif.inc');
?>
--FILE--
<?php
session_start();
var_dump(session_cache_expire());
var_dump(session_cache_limiter());
var_dump(session_save_path());
?>
--EXPECTF--
int(%d)
string(%d) "%S"
string(%d) "%S"