summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorsj-i <shinji.igarashi@gmail.com>2020-12-20 15:57:54 +0900
committerNikita Popov <nikita.ppv@gmail.com>2021-01-19 11:41:58 +0100
commit5d31ee302db073d5e99cf307315d2d631eaa34a5 (patch)
tree93324ec78f3b18b1fb9581b47854c1e6406507de /tests
parent68f5289e9e84b12b1a9ad671657702ce9a65a1e1 (diff)
downloadphp-git-5d31ee302db073d5e99cf307315d2d631eaa34a5.tar.gz
Fixed bug #42560
Check open_basedir after the fallback to the system's temporary directory in tempnam(). In order to preserve the current behavior of upload_tmp_dir (do not check explicitly specified dir, but check fallback), new flags are added to check open_basedir for explicit dir and for fallback. Closes GH-6526.
Diffstat (limited to 'tests')
-rw-r--r--tests/security/open_basedir_tempnam.phpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/security/open_basedir_tempnam.phpt b/tests/security/open_basedir_tempnam.phpt
index b444164efd..7990f97ab2 100644
--- a/tests/security/open_basedir_tempnam.phpt
+++ b/tests/security/open_basedir_tempnam.phpt
@@ -63,7 +63,7 @@ bool(false)
Warning: tempnam(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s): (.) in %s on line %d
bool(false)
-Warning: tempnam(): open_basedir restriction in effect. File() is not within the allowed path(s): (.) in %s on line %d
+Warning: tempnam(): open_basedir restriction in effect. File(%s) is not within the allowed path(s): (.) in %s on line %d
bool(false)
string(%d) "%s"
bool(true)