Bug #76701 [NEW]: open_basedir restriction when file doesn't exist

From: Date: Fri, 03 Aug 2018 16:09:03 +0000
Subject: Bug #76701 [NEW]: open_basedir restriction when file doesn't exist
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216564@lists.php.net to get a copy of this message
From: qtogf8 at sambull dot org Operating system: Debian PHP version: 7.0.31 Package: Safe Mode/open_basedir Bug Type: Bug Bug description:open_basedir restriction when file doesn't exist Description: ------------ This seems to be much the same issue as #41518. But, maybe it only occurs when exactly matching a file. i.e. When using file_exists(), I get an error along the lines of: PHP Warning: file_exists(): open_basedir restriction in effect. File(/foo/somefile.php) is not within the allowed path(s): (/foo/somefile.php) in ... Clearly, the error is wrong, when the allowed path is exactly the same as the file name. If I create the file, then the warning disappears, which proves that it is in the allowed path. -- Edit bug report at https://bugs.php.net/bug.php?id=76701&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76701&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76701&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76701&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76701&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76701&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76701&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76701&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76701&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76701&r=support Expected behavior: https://bugs.php.net/fix.php?id=76701&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76701&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76701&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76701&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76701&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76701&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76701&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76701&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76701&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76701&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76701&r=mysqlcfg

« previous php.bugs (#216564) next »