Closed EduRuizDK closed 2 years ago
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(); ?>
<?php require_once 'phar://geoip2.phar/vendor/autoload.php'; __HALT_COMPILER(); ?>
Change to: <?php require_once 'phar://' . __FILE__ . '/vendor/autoload.php'; __HALT_COMPILER(); ?>
<?php require_once 'phar://' . __FILE__ . '/vendor/autoload.php'; __HALT_COMPILER(); ?>
Thanks for the report! 2.12.2 has been released with this fix.
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(); ?>