[php-src] Issue #14368: Test failure in ext/session/tests/gh13856.phpt
| From: | orlitzky | Date: | Wed, 29 May 2024 20:11:31 +0000 |
| Subject: | [php-src] Issue #14368: Test failure in ext/session/tests/gh13856.phpt | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246985@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/14368
Author: orlitzky
### Description
On Gentoo this test works flawlessly when it is supposed to emit warnings. The contents of
gh13856.log are,
```
---- EXPECTED OUTPUT
Warning: SessionHandler::open(): open_basedir restriction in effect. File(%s) is not within the
allowed path(s): (.) in %s on line %d
Warning: SessionHandler::close(): Parent session handler is not open in %s on line %d
Warning: session_start(): Failed to initialize storage module: user (path: ) in %s on line %d
---- ACTUAL OUTPUT
---- FAILED
```
We're running the test suite from within
/var/lib/portage/tmp/portage/dev-lang/php-8.3.7/work/php-8.3.7, and with a command that
is highly fudged but ideally equivalent to,
```
export TEST_PHP_EXTRA_ARGS="-n"
SKIP_IO_CAPTURE_TESTS=1 SKIP_PERF_SENSITIVE=1 REPORT_EXIT_STATUS=1 \
/var/lib/portage/tmp/portage/dev-lang/php-8.3.7/work/sapis-build/cli/sapi/cli/php \
/var/lib/portage/tmp/portage/dev-lang/php-8.3.7/work/sapis-build/cli/run-tests.php \
--offline -n -q -d
"session.save_path=/var/lib/portage/tmp/portage/dev-lang/php-8.3.7/temp"
```
I can't yet explain the quiet test based on that, but it fails nonetheless.
### PHP Version
PHP 8.3.7
### Operating System
_No response_