Closes GH-4908.
Test filegroup() function: usage variations - invalid filenames
--CREDITS--
Dave Kelsey <d_kelsey@uk.ibm.com>
+--CONFLICTS--
+obscure_filename
--FILE--
<?php
/* Prototype: int filegroup ( string $filename )
clearstatcache();
}
fclose($file_handle);
-
-echo "\n*** Done ***";
?>
--CLEAN--
<?php
Warning: filegroup(): stat failed for 0 in %s on line %d
bool(false)
-
-*** Done ***
Test fileinode() function: usage variations - invalid filenames
--CREDITS--
Dave Kelsey <d_kelsey@uk.ibm.com>
+--CONFLICTS--
+obscure_filename
--FILE--
<?php
/*
clearstatcache();
}
fclose($file_handle);
-
-echo "\n*** Done ***";
?>
--CLEAN--
<?php
Warning: fileinode(): stat failed for 0 in %s on line %d
bool(false)
-
-*** Done ***
Test fileowner() function: usage variations - invalid filenames
--CREDITS--
Dave Kelsey <d_kelsey@uk.ibm.com>
+--CONFLICTS--
+obscure_filename
--FILE--
<?php
/* Prototype: int fileowner ( string $filename )
clearstatcache();
}
fclose($file_handle);
-
-echo "\n*** Done ***";
?>
--CLEAN--
<?php
Warning: fileowner(): stat failed for 0 in %s on line %d
bool(false)
-
-*** Done ***
Test fileperms() function: usage variations - invalid filenames
--CREDITS--
Dave Kelsey <d_kelsey@uk.ibm.com>
+--CONFLICTS--
+obscure_filename
--FILE--
<?php
/* Prototype: int fileperms ( string $filename )
clearstatcache();
}
fclose($file_handle);
-
-echo "\n*** Done ***";
?>
--CLEAN--
<?php
Warning: fileperms(): stat failed for 0 in %s on line %d
bool(false)
-
-*** Done ***
--TEST--
Test flock() function: Error conditions
+--CONFLICTS--
+obscure_filename
--FILE--
<?php
/*
/* No.of args greater than expected */
var_dump(flock($fp, "", $var, ""));
-
-echo "\n*** Done ***\n";
?>
--CLEAN--
<?php
Warning: flock() expects at most 3 parameters, 4 given in %s on line %d
NULL
-
-*** Done ***
--TEST--
Test is_dir() function: usage variations - invalid arguments
+--CONFLICTS--
+obscure_filename
--FILE--
<?php
/* Prototype: bool is_dir ( string $dirname );
var_dump( is_dir($dirname) );
}
closedir($dir_handle);
-
-echo "\n*** Done ***";
?>
--EXPECTF--
*** Testing is_dir() with Invalid arguments: expected bool(false) ***
NULL
bool(false)
bool(false)
-
-*** Done ***
--TEST--
Test is_file() function: usage variations - invalid filenames
+--CONFLICTS--
+obscure_filename
--FILE--
<?php
/* Prototype: bool is_file ( string $filename );
<?php
require __DIR__ . '/../skipif_root.inc';
?>
+--CONFLICTS--
+obscure_filename
--FILE--
<?php
/* Prototype: bool is_writable ( string $filename );
var_dump( is_writeable($misc_file) );
clearstatcache();
}
-
-echo "Done\n";
?>
--EXPECTF--
*** Testing is_writable(): usage variations ***
NULL
bool(false)
bool(false)
-Done
if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip ... not for Windows');
}
+--CONFLICTS--
+obscure_filename
--FILE--
<?php
/* Prototype: array lstat ( string $filename );
var_dump(lstat(''));
var_dump(lstat(' '));
var_dump(lstat('|'));
-echo "Done";
?>
--EXPECTF--
*** testing stat ***
Warning: lstat(): Lstat failed for | in %s on line %d
bool(false)
-Done
if(substr(PHP_OS, 0, 3) != "WIN")
die("skip run only on Windows");
?>
+--CONFLICTS--
+obscure_filename
--FILE--
<?php
/* Prototype : int readfile(string filename [, bool use_include_path[, resource context]])
};
?>
-===Done===
--EXPECTF--
*** Testing readfile() : variation ***
-- Filename: php/php --
Warning: readfile(php/php): failed to open stream: No such file or directory in %s on line %d
-===Done===
Test readlink() function: usage variations - invalid filenames
--CREDITS--
Dave Kelsey <d_kelsey@uk.ibm.com>
+--CONFLICTS--
+obscure_filename
--FILE--
<?php
/* Prototype: string readlink ( string $path );
clearstatcache();
}
fclose($file_handle);
-
-echo "\n*** Done ***";
?>
--CLEAN--
<?php
Warning: readlink(): %s in %s on line %d
bool(false)
-
-*** Done ***
if(substr(PHP_OS, 0, 3) == "WIN")
die("skip. Not for Windows");
?>
+--CONFLICTS--
+obscure_filename
--FILE--
<?php
/* Prototype : bool rename(string old_name, string new_name[, resource context])
}
rmdir($file_path);
-echo "\n*** Done ***\n";
?>
--EXPECTF--
*** Testing rename() with obscure files ***
Warning: rename(php/php,%s/renameVar13/afile.tmp): %s directory in %s on line %d
bool(false)
-
-*** Done ***
if(substr(PHP_OS, 0, 3) != "WIN")
die("skip run only on Windows");
?>
+--CONFLICTS--
+obscure_filename
--FILE--
<?php
/* Prototype: string tempnam ( string $dir, string $prefix );
}
rmdir($file_path);
-echo "\n*** Done. ***\n";
?>
--EXPECTF--
*** Testing tempnam() with obscure prefixes ***
OK
-- Iteration 9 --
OK
-
-*** Done. ***
if(substr(PHP_OS, 0, 3) == "WIN")
die("skip Do not run on Windows");
?>
+--CONFLICTS--
+obscure_filename
--FILE--
<?php
/* Prototype: string tempnam ( string $dir, string $prefix );
}
rmdir($file_path);
-echo "\n*** Done ***\n";
?>
--EXPECTF--
*** Testing tempnam() with obscure prefixes ***
File name is => %s/php%s
File permissions are => 100600
File created in => directory specified
-
-*** Done ***
if(substr(PHP_OS, 0, 3) != "WIN")
die("skip Only run on Windows");
?>
+--CONFLICTS--
+obscure_filename
--FILE--
<?php
/* Prototype: string tempnam ( string $dir, string $prefix );
unlink($file_name);
}
-
-echo "\n*** Done ***\n";
?>
--EXPECTF--
*** Testing tempnam() with invalid/non-existing directory names ***
File name is => %s%et%s
File permissions are => 100666
File created in => temp dir
-
-*** Done ***
if(substr(PHP_OS, 0, 3) == "WIN")
die("skip Do not run on Windows");
?>
+--CONFLICTS--
+obscure_filename
--FILE--
<?php
/* Prototype: string tempnam ( string $dir, string $prefix );
unlink($file_name);
}
-
-echo "\n*** Done ***\n";
?>
--EXPECTF--
*** Testing tempnam() with invalid/non-existing directory names ***
File name is => %s/tempnam_variation3.tmp%s
File permissions are => 100600
File created in => temp dir
-
-*** Done ***