Skip to content

ext/session/.../gh23043.phpt: session.save_path can be nonempty - #23537

Open
orlitzky wants to merge 1 commit into
php:PHP-8.4from
orlitzky:nonempty-session-save-path
Open

ext/session/.../gh23043.phpt: session.save_path can be nonempty#23537
orlitzky wants to merge 1 commit into
php:PHP-8.4from
orlitzky:nonempty-session-save-path

Conversation

@orlitzky

@orlitzky orlitzky commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Allow session.save_path to be nonempty in this test, as the test itself does not empty it, and in automated setups it is common to force all "temporary stuff" to a dedicated location.

Allow session.save_path to be nonempty in this test, as the test
itself does not empty it, and in automated setups it is common to
force all "temporary stuff" to a dedicated location.
@Sjord

Sjord commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Looks good to me.

For reference, error is generated here.

@NickSdot could you take a look at this?

@NickSdot

NickSdot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

@NickSdot could you take a look at this?

This makes sense to me; gh7787.phpt already does the same.

@jorgsowa jorgsowa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test suite is not properly isolated, so such artifacts happen. I would rather to have properly isolated environment or INI setting for tests, but technically it's also correct.

@orlitzky

orlitzky commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Test suite is not properly isolated, so such artifacts happen. I would rather to have properly isolated environment or INI setting for tests, but technically it's also correct.

Thanks, we are actually trying quite hard to isolate the tests, but in this case we're passing -d "session.save_path=..." to the TEST_PHP_EXECUTABLE to avoid cluttering the build directory with temporary files.

If you are looking for something to do today, I have a few PRs open that fix leaks in the (crude, but usable) TEST_PHP_ isolation mechanism :)

The tl;dr is that TEST_PHP_EXECUTABLE needs to be respected to avoid using the system PHP in place of the just-built one, and that TEST_PHP_EXTRA_ARGS needs to be respected so that -n can be reliably passed to that PHP. (Otherwise, it can load the system php.ini and extensions.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants