Bug #76974 [Opn->Nab]: file_exists() resolves "/existing/path/////"
| From: | requinix@php.net | Date: | Fri, 05 Oct 2018 00:24:35 +0000 |
| Subject: | Bug #76974 [Opn->Nab]: file_exists() resolves "/existing/path/////" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-217423@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76974&edit=1
ID: 76974
Updated by: requinix@php.net
Reported by: bendietze at yahoo dot de
Summary: file_exists() resolves "/existing/path/////"
-Status: Open
+Status: Not a bug
Type: Bug
Package: Filesystem function related
Operating System: PHP 7.2.10-0ubuntu0.18.04.1
PHP Version: 7.2.10
Block user comment: N
Private report: N
New Comment:
Because Linux doesn't care about repeated slashes.
Previous Comments:
------------------------------------------------------------------------
[2018-10-05 00:19:03] bendietze at yahoo dot de
Description:
------------
if (file_exists("/existing/path/////")) echo "why that?";
But only with a existing path! before ///
Test script:
---------------
if (file_exists("/existing/path/////")) echo "// is equal to ////////// and all
together true";
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76974&edit=1