Bug #78939 [Fbk->Opn]: file_exists produces different results with TS and NTS builds

From: Date: Tue, 10 Dec 2019 18:14:40 +0000
Subject: Bug #78939 [Fbk->Opn]: file_exists produces different results with TS and NTS builds
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-224208@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78939&edit=1 ID: 78939 Updated by: cmb@php.net Reported by: michael dot vorisek at email dot cz Summary: file_exists produces different results with TS and NTS builds -Status: Feedback +Status: Open Type: Bug Package: *Directory/Filesystem functions Operating System: Windows PHP Version: 7.3.12 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: This may very well be an issue of the PHP implementation. Previous Comments: ------------------------------------------------------------------------ [2019-12-10 18:13:31] cmb@php.net The following pull request has been associated: Patch Name: Fix #78939 - Windows relative path with drive letter On GitHub: https://github.com/php/php-src/pull/5001 Patch: https://github.com/php/php-src/pull/5001.patch ------------------------------------------------------------------------ [2019-12-10 14:52:11] fgfgfgfdf at somewhere dot com > PHP currently ignores this fact completely and resolves > relative paths with drive letter like absolute ones PHP resolves nothing, windows does ------------------------------------------------------------------------ [2019-12-10 14:28:21] michael dot vorisek at email dot cz No! I am just reporting, that relative path with drive letter is not resolved correctly. If this path format should be supported, it needs to be resolved like PHP resolve any other relative relative paths. PHP currently ignores this fact completely and resolves relative paths with drive letter like absolute ones. ------------------------------------------------------------------------ [2019-12-10 14:12:07] requinix@php.net And if your expected behavior on Windows is that "C:/x.txt" and "C:/X.TXT" are two different files, you would be equally wrong. ------------------------------------------------------------------------ [2019-12-10 13:30:36] michael dot vorisek at email dot cz Yes, only contemplation for easier fix and to prevent missuses... The current issue is that PHP does not resolves relative paths the same way. The expected behaviour is, if your current directory is in C: drive, then all usages like: "x.txt", "./x.txt" and "C:x.txt" point to the same file. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=78939 -- Edit this bug report at https://bugs.php.net/bug.php?id=78939&edit=1

« previous php.bugs (#224208) next »