Giter Club home page Giter Club logo

sypexgeo's People

Contributors

eseath avatar ggmanuilov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sypexgeo's Issues

Classpath loading not working when `--classmap-authoritative` is enabled

Synopsis

Classpath loading not working when --classmap-authoritative is enabled, which means library cannot be used as dependency when https://getcomposer.org/doc/articles/autoloader-optimization.md#optimization-level-2-a-authoritative-class-maps is enabled.

Steps to reproduce:

composer.json

{
    "name": "test/sypexgeo",
    "type": "project",
    "require": {
        "eseath/sypexgeo": "^2.3"
    }
}

test.php

<?php

use Eseath\SxGeo\SxGeo;

require_once __DIR__ . '/vendor/autoload.php';

new SxGeo('test.db', SXGEO_BATCH | SXGEO_MEMORY);
  1. Composer install without any parameters
composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 9 installs, 0 updates, 0 removals
  - Installing symfony/deprecation-contracts (v3.3.0): Extracting archive
  - Installing psr/http-message (2.0): Extracting archive
  - Installing psr/http-client (1.0.3): Extracting archive
  - Installing ralouphie/getallheaders (3.0.3): Extracting archive
  - Installing psr/http-factory (1.0.2): Extracting archive
  - Installing guzzlehttp/psr7 (2.6.1): Extracting archive
  - Installing guzzlehttp/promises (2.0.1): Extracting archive
  - Installing guzzlehttp/guzzle (7.8.0): Extracting archive
  - Installing eseath/sypexgeo (v2.3.1): Extracting archive
Generating autoload files
4 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Run test script -- runs without any issue.

  1. Run composer install with --classmap-authoritative:
composer --classmap-authoritative install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 9 installs, 0 updates, 0 removals
  - Installing symfony/deprecation-contracts (v3.3.0): Extracting archive
  - Installing psr/http-message (2.0): Extracting archive
  - Installing psr/http-client (1.0.3): Extracting archive
  - Installing ralouphie/getallheaders (3.0.3): Extracting archive
  - Installing psr/http-factory (1.0.2): Extracting archive
  - Installing guzzlehttp/psr7 (2.6.1): Extracting archive
  - Installing guzzlehttp/promises (2.0.1): Extracting archive
  - Installing guzzlehttp/guzzle (7.8.0): Extracting archive
  - Installing eseath/sypexgeo (v2.3.1): Extracting archive
Generating optimized autoload files
4 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Run test script -- DatabaseType cannot be autoloaded from classmap:

PHP Fatal error:  Uncaught Error: Class "Eseath\SxGeo\DatabaseType" not found in /sandbox/sypexgeo/vendor/eseath/sypexgeo/src/SxGeo.php:25
Stack trace:
#0 {main}
  thrown in /sandbox/sypexgeo/vendor/eseath/sypexgeo/src/SxGeo.php on line 25


Fatal error: Uncaught Error: Class "Eseath\SxGeo\DatabaseType" not found in /sandbox/sypexgeo/vendor/eseath/sypexgeo/src/SxGeo.php:25
Stack trace:
#0 {main}
  thrown in /sandbox/sypexgeo/vendor/eseath/sypexgeo/src/SxGeo.php on line 25

Env:

  • Composer version 2.6.3
  • PHP 8.2.11 or PHP 8.1.24

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.