--SKIPIF--
<?php
/* let's use /tmp here */
-$tmp_dir = "/tmp";
-if (!is_dir($tmp_dir) || realpath($tmp_dir) !== $tmp_dir) {
+$tmp_dir = __DIR__ . '/tmp';
+mkdir($tmp_dir);
+if (!is_dir($tmp_dir)) {
die("skip");
}
?>
--INI--
-open_basedir=/tmp/
+open_basedir=.
--FILE--
<?php
-$tmp_dir = "/tmp";
+$tmp_dir = __DIR__ . '/tmp';
$tmp_file = $tmp_dir."/bug41418.tmp";
touch($tmp_file);
var_dump(file_exists($tmp_file."nosuchfile")); //doesn't exist
@unlink($tmp_file);
+@rmdir($tmp_dir);
echo "Done\n";
?>