mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Avoid file clash in root_check skipifs
This commit is contained in:
parent
e98e1f92c9
commit
d6a77c992f
@ -6,7 +6,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
|
||||
die('skip not for windows');
|
||||
}
|
||||
// Skip if being run by root (files are always readable, writeable and executable)
|
||||
$filename = __DIR__."/is_readable_root_check.tmp";
|
||||
$filename = __DIR__."/is_executable_basic_root_check.tmp";
|
||||
$fp = fopen($filename, 'w');
|
||||
fclose($fp);
|
||||
if(fileowner($filename) == 0) {
|
||||
|
@ -6,7 +6,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
|
||||
die('skip not for windows');
|
||||
}
|
||||
// Skip if being run by root
|
||||
$filename = __DIR__."/is_readable_root_check.tmp";
|
||||
$filename = __DIR__."/is_executable_variation2_root_check.tmp";
|
||||
$fp = fopen($filename, 'w');
|
||||
fclose($fp);
|
||||
if(fileowner($filename) == 0) {
|
||||
|
@ -6,7 +6,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
|
||||
die('skip not for windows');
|
||||
}
|
||||
// Skip if being run by root (files are always readable, writeable and executable)
|
||||
$filename = __DIR__."/is_readable_root_check.tmp";
|
||||
$filename = __DIR__."/is_readable_basic_root_check.tmp";
|
||||
$fp = fopen($filename, 'w');
|
||||
fclose($fp);
|
||||
if(fileowner($filename) == 0) {
|
||||
|
@ -4,7 +4,7 @@ Test is_readable() function: usage variations - diff. file notations
|
||||
<?php
|
||||
if (substr(PHP_OS, 0, 3) != 'WIN') {
|
||||
// Skip if being run by root (files are always readable, writeable and executable)
|
||||
$filename = __DIR__."/is_readable_root_check.tmp";
|
||||
$filename = __DIR__."/is_readable_variation1_root_check.tmp";
|
||||
$fp = fopen($filename, 'w');
|
||||
fclose($fp);
|
||||
if(fileowner($filename) == 0) {
|
||||
|
@ -6,7 +6,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
|
||||
die('skip not for windows');
|
||||
}
|
||||
// Skip if being run by root
|
||||
$filename = __DIR__."/is_readable_root_check.tmp";
|
||||
$filename = __DIR__."/is_readable_variation2_root_check.tmp";
|
||||
$fp = fopen($filename, 'w');
|
||||
fclose($fp);
|
||||
if(fileowner($filename) == 0) {
|
||||
|
@ -5,7 +5,7 @@ Test is_readable() function: usage variations - invalid file names
|
||||
if (substr(PHP_OS, 0, 3) != 'WIN') {
|
||||
|
||||
// Skip if being run by root (files are always readable, writeable and executable)
|
||||
$filename = __DIR__."/is_readable_root_check.tmp";
|
||||
$filename = __DIR__."/is_readable_variation3_root_check.tmp";
|
||||
$fp = fopen($filename, 'w');
|
||||
fclose($fp);
|
||||
if(fileowner($filename) == 0) {
|
||||
|
@ -3,7 +3,7 @@ Test is_writable() and its alias is_writeable() function: basic functionality
|
||||
--SKIPIF--
|
||||
<?php
|
||||
// Skip if being run by root (files are always readable, writeable and executable)
|
||||
$filename = __DIR__."/is_readable_root_check.tmp";
|
||||
$filename = __DIR__."/is_writable_basic_root_check.tmp";
|
||||
$fp = fopen($filename, 'w');
|
||||
fclose($fp);
|
||||
if(fileowner($filename) == 0) {
|
||||
|
@ -6,7 +6,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
|
||||
die('skip.. only on LINUX');
|
||||
}
|
||||
// Skip if being run by root
|
||||
$filename = __DIR__."/is_readable_root_check.tmp";
|
||||
$filename = __DIR__."/is_writable_variation2_root_check.tmp";
|
||||
$fp = fopen($filename, 'w');
|
||||
fclose($fp);
|
||||
if(fileowner($filename) == 0) {
|
||||
|
@ -5,7 +5,7 @@ Test lchown() function : error functionality
|
||||
if (substr(PHP_OS, 0, 3) == 'WIN') die('skip no windows support');
|
||||
if (!function_exists("posix_getuid")) die("skip no posix_getuid()");
|
||||
// Skip if being run by root
|
||||
$filename = __DIR__."/is_readable_root_check.tmp";
|
||||
$filename = __DIR__."/lchow_error_root_check.tmp";
|
||||
$fp = fopen($filename, 'w');
|
||||
fclose($fp);
|
||||
if(fileowner($filename) == 0) {
|
||||
|
@ -6,7 +6,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
|
||||
die('skip.. only on LINUX');
|
||||
}
|
||||
// Skip if being run by root (files are always readable, writeable and executable)
|
||||
$filename = __DIR__."/is_readable_root_check.tmp";
|
||||
$filename = __DIR__."/mkdir_rmdir_variation1_root_check.tmp";
|
||||
$fp = fopen($filename, 'w');
|
||||
fclose($fp);
|
||||
if(fileowner($filename) == 0) {
|
||||
|
@ -6,7 +6,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
|
||||
die('skip.. only on LINUX');
|
||||
}
|
||||
// Skip if being run by root (files are always readable, writeable and executable)
|
||||
$filename = __DIR__."/is_readable_root_check.tmp";
|
||||
$filename = __DIR__."/mkdir_rmdir_variation2_root_check.tmp";
|
||||
$fp = fopen($filename, 'w');
|
||||
fclose($fp);
|
||||
if(fileowner($filename) == 0) {
|
||||
|
@ -6,7 +6,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
|
||||
die('skip Not valid for Windows');
|
||||
}
|
||||
// Skip if being run by root
|
||||
$filename = __DIR__."/is_readable_root_check.tmp";
|
||||
$filename = __DIR__."/tempnam_variation4-0_root_check.tmp";
|
||||
$fp = fopen($filename, 'w');
|
||||
fclose($fp);
|
||||
if(fileowner($filename) == 0) {
|
||||
|
@ -6,7 +6,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
|
||||
die('skip Not valid for Windows');
|
||||
}
|
||||
// Skip if being run by root
|
||||
$filename = __DIR__."/is_readable_root_check.tmp";
|
||||
$filename = __DIR__."/tempnam_variation4-1_root_check.tmp";
|
||||
$fp = fopen($filename, 'w');
|
||||
fclose($fp);
|
||||
if(fileowner($filename) == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user