Skip to content

Bug: Inaccurate path resolution in Boot #9309

@sk757a

Description

@sk757a

PHP Version

8.3

CodeIgniter4 Version

4.5.5

CodeIgniter4 Installation Method

Composer (as dependency to an existing project)

Which operating systems have you tested for this bug?

Windows

Which server did you use?

cli

Database

No response

What happened?

spark prints "" and nothing else.

Steps to Reproduce

  1. Set $writableDirectory in Paths to non-existent folder
  2. Run spark

Expected Output

At least more meaningful error message.

Anything else?

When using the realpath function, if there is no actual path in the file system, false is returned. Which is then converted to an empty string when concatenated. The result path is pointing to the root.

Metadata

Metadata

Assignees

No one assigned

    Labels

    missing featureReported issue which is not a bug but needs to be implemented

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions