Skip to content

Commit b0bb882

Browse files
author
Ilia Alshanetsky
committed
Fixed bug #24313 (file_exist() warning on non-existent files when
open_basedir is used).
1 parent 22eb8d9 commit b0bb882

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ext/standard/tests/file/bug24313.phpt

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--TEST--
2+
Bug #24313: file_exists() warning on non-existant files when is open_basedir enabled
3+
--INI--
4+
open_basedir=/tmp
5+
--FILE--
6+
<?php
7+
var_dump(file_exists("./foobar"));
8+
?>
9+
--EXPECT--
10+
bool(false)

0 commit comments

Comments
 (0)