Skip to content

DIRECTORY_SEPARATOR / Different Behavior under Windows #1760

Description

@mcsaygili

DIRECTORY_SEPARATOR / Different Behavior under Windows
Hi, I just want to report bug (as i think)
My Enviroment

  • Apache 2.4.38
  • Php 7.2.15
  • Windows 10
  • Using WAMP 3.1.7
  • Codeigniter 4 Alpha 5

Under this code block,
dev10-net\system\Autoloader\FileLocator.php
function : getNamespaces and locateFile

after while statement, var_dump result is;

C:\99.mcs\dev10-net\system\Autoloader\FileLocator.php:128: array (size=3) 0 => string 'C:\99.mcs\dev10-net\ThirdParty/Site/\' (length=37) 1 => string 'Site' (length=4) 2 => string 'Views/theme/2018/common/headerView.php' (length=38)

if you check array 0, you will see second slash.
when i change DIRECTORY_SEPARATOR to "/" under getNamespaces my problem solved.

Is it bug or i made mistake ? I'm not sure. :)
Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions