File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
standard /
tests /
general_functions /
bug41518.phpt
Revision
1.1.1.2 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue May 29 12:34:44 2012 UTC (12 years, 3 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
HEAD
php 5.4.3+patches
--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");
}
@unlink($tmp_dir);
?>
--INI--
open_basedir=.
--FILE--
<?php
$tmp_dir = __DIR__ . "/bug41518/";
@mkdir($tmp_dir);
$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";
?>
--CLEAN--
<?php
$tmp_dir = __DIR__ . "/bug41518/";
@unlink($tmp_dir);
?>
--EXPECT--
bool(true)
bool(false)
Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>