Skip to content

Bug: Problem when compiled vendor as PHAR file #2623

Description

@enix-app

Describe the bug
I tried to compile all vendor dir into PHAR file as vendor.phar for example.
The problem, codeigniter4/framework package shown errors because in codeigniter/framework/system/bootstrap.php use realpath() function and PHAR file doesn't support it.
PHP docs says:

The function realpath() will not work for a file which is inside a Phar as such path would be a virtual path, not a real one.

CodeIgniter 4 version
Target version 4.1.x

Affected module(s)
vendor/codeigniter4/framework/system/bootstrap.php

Expected behavior, and steps to reproduce if appropriate
I believe most of packages/vendor of composer doesn't use this function.
I think, move system/bootstrap.php to app directory (app/Config/Boot/bootstrap.php) can solve this.

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

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions