-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/src/php/ext/standard/tests/general_functions/
File Upload :
Current File : //usr/src/php/ext/standard/tests/general_functions/bug41518.phpt

--TEST--
Bug #41518 (file_exists() warns of open_basedir restriction on non-existent file)
--SKIPIF--
<?php
$tmp_dir = __DIR__ . '/bug41518';
mkdir($tmp_dir);
if (!is_dir($tmp_dir)) {
	die("skip");
}
?>
--INI--
open_basedir=.
--FILE--
<?php

$tmp_dir = __DIR__ . "/bug41518/";
$tmp_file = $tmp_dir."/bug41418.tmp";

touch($tmp_file);
var_dump(file_exists($tmp_file)); //exists
var_dump(file_exists($tmp_file."nosuchfile")); //doesn't exist

@unlink($tmp_file);
@rmdir($tmp_dir);
echo "Done\n";
?>
--EXPECT--
bool(true)
bool(false)
Done

Copyright © 2017 || Recoded By Mr.Bumblebee