Bug #78806 [NEW]: Wrong open_basedir warning

From: Date: Tue, 12 Nov 2019 15:41:23 +0000
Subject: Bug #78806 [NEW]: Wrong open_basedir warning
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223687@lists.php.net to get a copy of this message
From: michael dot vorisek at email dot cz Operating system: Windows PHP version: 7.3.11 Package: *Directory/Filesystem functions Bug Type: Bug Bug description:Wrong open_basedir warning Description: ------------ On Windows PHP emits a warning if file path consists of existing file and slash plus optionally anything is appended. This issue should be fixes asap as it outputs unwanted output from core function. Test script: --------------- (Windows + PHP 7.3 + PHP error reporting enabled + open_basedir set) var_dump(file_exists(__FILE__)); var_dump(file_exists(__FILE__ . '/')); Expected result: ---------------- bool(true) (no warning) bool(false) Actual result: -------------- bool(true) Warning: file_exists(): open_basedir restriction in effect. File(C:/x/test.php/) is not within the allowed path(s): (C:/x/) in xxx on line xxx bool(false) -- Edit bug report at https://bugs.php.net/bug.php?id=78806&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78806&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78806&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78806&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78806&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78806&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78806&r=support Expected behavior: https://bugs.php.net/fix.php?id=78806&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78806&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78806&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78806&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78806&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78806&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78806&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78806&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78806&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78806&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78806&r=mysqlcfg

« previous php.bugs (#223687) next »