mirror of
https://github.com/php/php-src.git
synced 2026-04-28 02:33:17 +02:00
/tmp is often a symlink, use /bin instead
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
--TEST--
|
||||
Bug #24313 (file_exists() warning on non-existant files when is open_basedir enabled)
|
||||
Bug #24313 (file_exists() throws a warning on nonexistent files when is open_basedir enabled)
|
||||
--INI--
|
||||
open_basedir=/tmp
|
||||
open_basedir=/bin
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(file_exists("/tmp/bogus_file_no_such_thing"));
|
||||
var_dump(file_exists("/bin/bogus_file_no_such_thing"));
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(false)
|
||||
|
||||
Reference in New Issue
Block a user