/PHP-8.4/Zend/tests/ |
H A D | gh10469.phpt | 2 GH-10469: Disallow open_basedir() with parent dir components (..) 7 ini_set('open_basedir', __DIR__); 14 ini_set('open_basedir', ini_get('open_basedir') . $pathSeparator . '.' . DIRECTORY_SEPARATOR . '..'… 15 ini_set('open_basedir', ini_get('open_basedir') . $pathSeparator . '.' . DIRECTORY_SEPARATOR . '..'… 16 ini_set('open_basedir', ini_get('open_basedir') . $pathSeparator . '.' . DIRECTORY_SEPARATOR . 'a' … 17 ini_set('open_basedir', ini_get('open_basedir') . $pathSeparator . '.' . DIRECTORY_SEPARATOR . 'a'); 20 var_dump(ini_get('open_basedir'));
|
/PHP-8.4/tests/security/ |
H A D | open_basedir_chdir.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 21 require_once "open_basedir.inc"; 25 *** Testing open_basedir configuration [chdir] *** 32 Warning: chdir(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s… 35 Warning: chdir(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (… 38 Warning: chdir(): open_basedir restriction in effect. File(../) is not within the allowed path(s): … 41 Warning: chdir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.… 47 Warning: chdir(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s… [all …]
|
H A D | open_basedir_disk_free_space.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 17 require_once "open_basedir.inc"; 21 *** Testing open_basedir configuration [disk_free_space] *** 28 Warning: disk_free_space(): open_basedir restriction in effect. File(%s) is not within the allowed … 31 Warning: disk_free_space(): open_basedir restriction in effect. File(%s) is not within the allowed … 34 Warning: disk_free_space(): open_basedir restriction in effect. File(%s) is not within the allowed … 37 Warning: disk_free_space(): open_basedir restriction in effect. File(%s) is not within the allowed … 40 Warning: disk_free_space(): open_basedir restriction in effect. File(%s) is not within the allowed … [all …]
|
H A D | open_basedir_fileatime.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 12 require_once "open_basedir.inc"; 16 *** Testing open_basedir configuration [fileatime] *** 23 Warning: fileatime(): open_basedir restriction in effect. File(../bad) is not within the allowed pa… 29 Warning: fileatime(): open_basedir restriction in effect. File(..) is not within the allowed path(s… 32 Warning: fileatime(): open_basedir restriction in effect. File(../) is not within the allowed path(… 35 Warning: fileatime(): open_basedir restriction in effect. File(/) is not within the allowed path(s)… 47 Warning: fileatime(): open_basedir restriction in effect. File(./../.) is not within the allowed pa… [all …]
|
H A D | open_basedir_filesize.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 12 require_once "open_basedir.inc"; 16 *** Testing open_basedir configuration [filesize] *** 23 Warning: filesize(): open_basedir restriction in effect. File(../bad) is not within the allowed pat… 29 Warning: filesize(): open_basedir restriction in effect. File(..) is not within the allowed path(s)… 32 Warning: filesize(): open_basedir restriction in effect. File(../) is not within the allowed path(s… 35 Warning: filesize(): open_basedir restriction in effect. File(/) is not within the allowed path(s):… 47 Warning: filesize(): open_basedir restriction in effect. File(./../.) is not within the allowed pat… [all …]
|
H A D | open_basedir_is_file.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 12 require_once "open_basedir.inc"; 16 *** Testing open_basedir configuration [is_file] *** 23 Warning: is_file(): open_basedir restriction in effect. File(../bad) is not within the allowed path… 29 Warning: is_file(): open_basedir restriction in effect. File(..) is not within the allowed path(s):… 32 Warning: is_file(): open_basedir restriction in effect. File(../) is not within the allowed path(s)… 35 Warning: is_file(): open_basedir restriction in effect. File(/) is not within the allowed path(s): … 47 Warning: is_file(): open_basedir restriction in effect. File(./../.) is not within the allowed path… [all …]
|
H A D | open_basedir_is_readable.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 12 require_once "open_basedir.inc"; 16 *** Testing open_basedir configuration [is_readable] *** 23 Warning: is_readable(): open_basedir restriction in effect. File(../bad) is not within the allowed … 29 Warning: is_readable(): open_basedir restriction in effect. File(..) is not within the allowed path… 32 Warning: is_readable(): open_basedir restriction in effect. File(../) is not within the allowed pat… 35 Warning: is_readable(): open_basedir restriction in effect. File(/) is not within the allowed path(… 47 Warning: is_readable(): open_basedir restriction in effect. File(./../.) is not within the allowed … [all …]
|
H A D | open_basedir_is_writable.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 12 require_once "open_basedir.inc"; 16 *** Testing open_basedir configuration [is_writable] *** 23 Warning: is_writable(): open_basedir restriction in effect. File(../bad) is not within the allowed … 29 Warning: is_writable(): open_basedir restriction in effect. File(..) is not within the allowed path… 32 Warning: is_writable(): open_basedir restriction in effect. File(../) is not within the allowed pat… 35 Warning: is_writable(): open_basedir restriction in effect. File(/) is not within the allowed path(… 47 Warning: is_writable(): open_basedir restriction in effect. File(./../.) is not within the allowed … [all …]
|
H A D | open_basedir_file_exists.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 12 require_once "open_basedir.inc"; 16 *** Testing open_basedir configuration [file_exists] *** 23 Warning: file_exists(): open_basedir restriction in effect. File(../bad) is not within the allowed … 29 Warning: file_exists(): open_basedir restriction in effect. File(..) is not within the allowed path… 32 Warning: file_exists(): open_basedir restriction in effect. File(../) is not within the allowed pat… 35 Warning: file_exists(): open_basedir restriction in effect. File(/) is not within the allowed path(… 47 Warning: file_exists(): open_basedir restriction in effect. File(./../.) is not within the allowed … [all …]
|
H A D | open_basedir_filectime.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 12 require_once "open_basedir.inc"; 16 *** Testing open_basedir configuration [filectime] *** 23 Warning: filectime(): open_basedir restriction in effect. File(../bad) is not within the allowed pa… 29 Warning: filectime(): open_basedir restriction in effect. File(..) is not within the allowed path(s… 32 Warning: filectime(): open_basedir restriction in effect. File(../) is not within the allowed path(… 35 Warning: filectime(): open_basedir restriction in effect. File(/) is not within the allowed path(s)… 47 Warning: filectime(): open_basedir restriction in effect. File(./../.) is not within the allowed pa… [all …]
|
H A D | open_basedir_filegroup.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 12 require_once "open_basedir.inc"; 16 *** Testing open_basedir configuration [filegroup] *** 23 Warning: filegroup(): open_basedir restriction in effect. File(../bad) is not within the allowed pa… 29 Warning: filegroup(): open_basedir restriction in effect. File(..) is not within the allowed path(s… 32 Warning: filegroup(): open_basedir restriction in effect. File(../) is not within the allowed path(… 35 Warning: filegroup(): open_basedir restriction in effect. File(/) is not within the allowed path(s)… 47 Warning: filegroup(): open_basedir restriction in effect. File(./../.) is not within the allowed pa… [all …]
|
H A D | open_basedir_fileinode.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 12 require_once "open_basedir.inc"; 16 *** Testing open_basedir configuration [fileinode] *** 23 Warning: fileinode(): open_basedir restriction in effect. File(../bad) is not within the allowed pa… 29 Warning: fileinode(): open_basedir restriction in effect. File(..) is not within the allowed path(s… 32 Warning: fileinode(): open_basedir restriction in effect. File(../) is not within the allowed path(… 35 Warning: fileinode(): open_basedir restriction in effect. File(/) is not within the allowed path(s)… 47 Warning: fileinode(): open_basedir restriction in effect. File(./../.) is not within the allowed pa… [all …]
|
H A D | open_basedir_filemtime.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 12 require_once "open_basedir.inc"; 16 *** Testing open_basedir configuration [filemtime] *** 23 Warning: filemtime(): open_basedir restriction in effect. File(../bad) is not within the allowed pa… 29 Warning: filemtime(): open_basedir restriction in effect. File(..) is not within the allowed path(s… 32 Warning: filemtime(): open_basedir restriction in effect. File(../) is not within the allowed path(… 35 Warning: filemtime(): open_basedir restriction in effect. File(/) is not within the allowed path(s)… 47 Warning: filemtime(): open_basedir restriction in effect. File(./../.) is not within the allowed pa… [all …]
|
H A D | open_basedir_fileowner.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 12 require_once "open_basedir.inc"; 16 *** Testing open_basedir configuration [fileowner] *** 23 Warning: fileowner(): open_basedir restriction in effect. File(../bad) is not within the allowed pa… 29 Warning: fileowner(): open_basedir restriction in effect. File(..) is not within the allowed path(s… 32 Warning: fileowner(): open_basedir restriction in effect. File(../) is not within the allowed path(… 35 Warning: fileowner(): open_basedir restriction in effect. File(/) is not within the allowed path(s)… 47 Warning: fileowner(): open_basedir restriction in effect. File(./../.) is not within the allowed pa… [all …]
|
H A D | open_basedir_fileperms.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 12 require_once "open_basedir.inc"; 16 *** Testing open_basedir configuration [fileperms] *** 23 Warning: fileperms(): open_basedir restriction in effect. File(../bad) is not within the allowed pa… 29 Warning: fileperms(): open_basedir restriction in effect. File(..) is not within the allowed path(s… 32 Warning: fileperms(): open_basedir restriction in effect. File(../) is not within the allowed path(… 35 Warning: fileperms(): open_basedir restriction in effect. File(/) is not within the allowed path(s)… 47 Warning: fileperms(): open_basedir restriction in effect. File(./../.) is not within the allowed pa… [all …]
|
H A D | open_basedir_filetype.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 12 require_once "open_basedir.inc"; 16 *** Testing open_basedir configuration [filetype] *** 23 Warning: filetype(): open_basedir restriction in effect. File(../bad) is not within the allowed pat… 29 Warning: filetype(): open_basedir restriction in effect. File(..) is not within the allowed path(s)… 32 Warning: filetype(): open_basedir restriction in effect. File(../) is not within the allowed path(s… 35 Warning: filetype(): open_basedir restriction in effect. File(/) is not within the allowed path(s):… 47 Warning: filetype(): open_basedir restriction in effect. File(./../.) is not within the allowed pat… [all …]
|
H A D | open_basedir_is_dir.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 12 require_once "open_basedir.inc"; 16 *** Testing open_basedir configuration [is_dir] *** 23 Warning: is_dir(): open_basedir restriction in effect. File(../bad) is not within the allowed path(… 29 Warning: is_dir(): open_basedir restriction in effect. File(..) is not within the allowed path(s): … 32 Warning: is_dir(): open_basedir restriction in effect. File(../) is not within the allowed path(s):… 35 Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (… 47 Warning: is_dir(): open_basedir restriction in effect. File(./../.) is not within the allowed path(… [all …]
|
H A D | open_basedir_is_link.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 12 require_once "open_basedir.inc"; 16 *** Testing open_basedir configuration [is_link] *** 23 Warning: is_link(): open_basedir restriction in effect. File(../bad) is not within the allowed path… 29 Warning: is_link(): open_basedir restriction in effect. File(..) is not within the allowed path(s):… 32 Warning: is_link(): open_basedir restriction in effect. File(../) is not within the allowed path(s)… 35 Warning: is_link(): open_basedir restriction in effect. File(/) is not within the allowed path(s): … 47 Warning: is_link(): open_basedir restriction in effect. File(./../.) is not within the allowed path… [all …]
|
H A D | open_basedir_lstat.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 12 require_once "open_basedir.inc"; 16 *** Testing open_basedir configuration [lstat] *** 23 Warning: lstat(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s… 29 Warning: lstat(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (… 32 Warning: lstat(): open_basedir restriction in effect. File(../) is not within the allowed path(s): … 35 Warning: lstat(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.… 47 Warning: lstat(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s… [all …]
|
H A D | open_basedir_stat.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 12 require_once "open_basedir.inc"; 16 *** Testing open_basedir configuration [stat] *** 23 Warning: stat(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s)… 29 Warning: stat(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.… 32 Warning: stat(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (… 35 Warning: stat(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.)… 47 Warning: stat(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s)… [all …]
|
H A D | open_basedir_rmdir.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 21 require_once "open_basedir.inc"; 25 *** Testing open_basedir configuration [rmdir] *** 32 Warning: rmdir(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s… 35 Warning: rmdir(): open_basedir restriction in effect. File(.././bad) is not within the allowed path… 38 Warning: rmdir(): open_basedir restriction in effect. File(../bad/../bad) is not within the allowed… 41 Warning: rmdir(): open_basedir restriction in effect. File(./.././bad) is not within the allowed pa… 44 Warning: rmdir(): open_basedir restriction in effect. File(%s/test/bad) is not within the allowed p… [all …]
|
H A D | open_basedir_is_executable.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 21 require_once "open_basedir.inc"; 25 *** Testing open_basedir configuration [is_executable] *** 32 Warning: is_executable(): open_basedir restriction in effect. File(../bad) is not within the allowe… 38 Warning: is_executable(): open_basedir restriction in effect. File(..) is not within the allowed pa… 41 Warning: is_executable(): open_basedir restriction in effect. File(../) is not within the allowed p… 44 Warning: is_executable(): open_basedir restriction in effect. File(/) is not within the allowed pat… 47 Warning: is_executable(): open_basedir restriction in effect. File(../bad/.) is not within the allo… [all …]
|
H A D | open_basedir_mkdir.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 22 require_once "open_basedir.inc"; 26 *** Testing open_basedir configuration [mkdir] *** 33 Warning: mkdir(): open_basedir restriction in effect. File(../bad/blah) is not within the allowed p… 36 Warning: mkdir(): open_basedir restriction in effect. File(../blah) is not within the allowed path(… 39 Warning: mkdir(): open_basedir restriction in effect. File(../bad/./blah) is not within the allowed… 42 Warning: mkdir(): open_basedir restriction in effect. File(./.././blah) is not within the allowed p… 46 *** Finished testing open_basedir configuration [mkdir] ***
|
H A D | open_basedir_realpath.phpt | 2 Test open_basedir configuration 10 open_basedir=. 13 require_once "open_basedir.inc"; 18 require_once "open_basedir.inc"; 22 *** Testing open_basedir configuration [realpath] *** 29 Warning: realpath(): open_basedir restriction in effect. File(%s\test\bad) is not within the allowe… 35 Warning: realpath(): open_basedir restriction in effect. File(%s\test) is not within the allowed pa… 38 Warning: realpath(): open_basedir restriction in effect. File(%s\test) is not within the allowed pa… 41 Warning: realpath(): open_basedir restriction in effect. File(%s\) is not within the allowed path(s… 53 Warning: realpath(): open_basedir restriction in effect. File(%s\test) is not within the allowed pa… [all …]
|
H A D | open_basedir_unlink.phpt | 2 Test open_basedir configuration 4 open_basedir=. 7 require_once "open_basedir.inc"; 21 require_once "open_basedir.inc"; 25 *** Testing open_basedir configuration [unlink] *** 32 Warning: unlink(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allow… 35 Warning: unlink(): open_basedir restriction in effect. File(.././bad/bad.txt) is not within the all… 38 Warning: unlink(): open_basedir restriction in effect. File(../bad/../bad/bad.txt) is not within th… 41 Warning: unlink(): open_basedir restriction in effect. File(./.././bad/bad.txt) is not within the a… 44 Warning: unlink(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the … [all …]
|