From 976dd997ded10ddc8466bcce0c6d54db9da4fd6d Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 19 May 2021 09:58:03 +0200 Subject: [PATCH] Fix open_basedir tests when running from /tmp If our cwd is in /tmp, these tests would fail. Use a directory name that is less likely to clash. --- ext/standard/tests/file/bug41655_1.phpt | 2 +- ext/standard/tests/file/glob_variation5.phpt | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ext/standard/tests/file/bug41655_1.phpt b/ext/standard/tests/file/bug41655_1.phpt index 9a95b1c8994..cd89b2e802f 100644 --- a/ext/standard/tests/file/bug41655_1.phpt +++ b/ext/standard/tests/file/bug41655_1.phpt @@ -9,7 +9,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') { --CREDITS-- Dave Kelsey --INI-- -open_basedir="{TMP}" +open_basedir="/some_directory_we_are_hopefully_not_running_tests_from" --FILE-- --EXPECT-- bool(false)