Skip to content

Change Phar Stub to allow different path #179

@EduRuizDK

Description

@EduRuizDK

Please change Phar Stub to allow loading from different path:

Current stub (only works if geoip2.phar and script are in the same directory):
<?php require_once 'phar://geoip2.phar/vendor/autoload.php'; __HALT_COMPILER(); ?>

Change to:
<?php require_once 'phar://' . __FILE__ . '/vendor/autoload.php'; __HALT_COMPILER(); ?>

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