Giter Club home page Giter Club logo

Comments (8)

froschdesign avatar froschdesign commented on August 23, 2024 1

@holtkamp
If I have understood the problem correctly, then this works:

Allow use of PHP 8.3, laminas-cache and laminas-i18n.

But not this:

  1. To allow use of PHP 8.3 (psr/cache 2.0|3.0)

Because:

4. laminas-i18n requires laminas-servicemanager v3

But this was expected and therefore any help is welcome to solve this.

from laminas-cache.

boesing avatar boesing commented on August 23, 2024

I am not sure if I understand the issue.
There is https://github.com/laminas/laminas-cache/releases/tag/3.12.0 which supports PHP 8.3, laminas-i18n is not required by laminas-cache and thus there should be no limitation.

laminas-i18n has https://github.com/laminas/laminas-i18n/releases/tag/2.24.0 which supports PHP 8.3, so having laminas-cache 3.12.0+ with laminas-i18n 2.24+ should have full 8.3 support?

Neither cache nor i18n depend on psr/log so I am a bit lost here.

Can you provide a bit more details of the composer output which leads to the issue as I do not understand the dependency chain by reading the issue description.

Oh and laminas-servicemanager has https://github.com/laminas/laminas-servicemanager/releases/tag/3.22.0 which supports PHP 8.3 but whyever, your composer does require 3.21.0.

from laminas-cache.

boesing avatar boesing commented on August 23, 2024

I quickly setup a test project and this is what I get:

composer require php:~8.3.0 laminas/laminas-cache:^3.12 laminas/laminas-i18n:^2.24 psr/log laminas/laminas-cache-storage-adapter-blackhole
./composer.json has been created
Running composer update php laminas/laminas-cache laminas/laminas-i18n psr/log laminas/laminas-cache-storage-adapter-blackhole
Loading composer repositories with package information
Updating dependencies
Lock file operations: 12 installs, 0 updates, 0 removals
  - Locking laminas/laminas-cache (3.12.1)
  - Locking laminas/laminas-cache-storage-adapter-blackhole (2.4.0)
  - Locking laminas/laminas-eventmanager (3.13.0)
  - Locking laminas/laminas-i18n (2.26.0)
  - Locking laminas/laminas-servicemanager (3.22.1)
  - Locking laminas/laminas-stdlib (3.19.0)
  - Locking psr/cache (1.0.1)
  - Locking psr/clock (1.0.0)
  - Locking psr/container (1.1.2)
  - Locking psr/log (3.0.0)
  - Locking psr/simple-cache (1.0.1)
  - Locking webmozart/assert (1.11.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 12 installs, 0 updates, 0 removals
  - Downloading webmozart/assert (1.11.0)
  - Downloading psr/simple-cache (1.0.1)
  - Downloading psr/clock (1.0.0)
  - Downloading psr/cache (1.0.1)
  - Downloading psr/container (1.1.2)
  - Downloading laminas/laminas-servicemanager (3.22.1)
  - Downloading laminas/laminas-eventmanager (3.13.0)
  - Downloading laminas/laminas-cache-storage-adapter-blackhole (2.4.0)
  - Downloading laminas/laminas-cache (3.12.1)
  - Downloading laminas/laminas-i18n (2.26.0)
  - Downloading psr/log (3.0.0)
  - Installing webmozart/assert (1.11.0): Extracting archive
  - Installing psr/simple-cache (1.0.1): Extracting archive
  - Installing psr/clock (1.0.0): Extracting archive
  - Installing psr/cache (1.0.1): Extracting archive
  - Installing laminas/laminas-stdlib (3.19.0): Extracting archive
  - Installing psr/container (1.1.2): Extracting archive
  - Installing laminas/laminas-servicemanager (3.22.1): Extracting archive
  - Installing laminas/laminas-eventmanager (3.13.0): Extracting archive
  - Installing laminas/laminas-cache-storage-adapter-blackhole (2.4.0): Extracting archive
  - Installing laminas/laminas-cache (3.12.1): Extracting archive
  - Installing laminas/laminas-i18n (2.26.0): Extracting archive
  - Installing psr/log (3.0.0): Extracting archive
15 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
6 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found.
Using version ^3.0 for psr/log
Using version ^2.4 for laminas/laminas-cache-storage-adapter-blackhole
→ php --version && composer check-platform-reqs
PHP 8.3.6 (cli) (built: Apr 10 2024 14:21:20) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.6, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.6, Copyright (c), by Zend Technologies
Checking platform requirements for packages in the vendor dir
ext-ctype 8.3.6   success 
ext-intl  8.3.6   success 
php       8.3.6   success 

So whatever is holding back servicemanager 3.22 should be outlined, you could try checking what is holding back by running:

composer why-not laminas/laminas-servicemanager 3.22

from laminas-cache.

holtkamp avatar holtkamp commented on August 23, 2024

@boesing thanks a lot for the swift and detailed response!

I thought I prepared the issue thoroughly, but apparently I made a mistake: instead of psr/log I meant psr/cache. To allow using psr/cache 2.0|3.0 in a project, laminas-cache v4 is required and we started using laminas-cache 4.0.x-dev which worked properly until recently.

Hopefully this clarifies the issue report...

from laminas-cache.

holtkamp avatar holtkamp commented on August 23, 2024

@froschdesign thanks for the response.

My suggestion was only to tag some kind of "alpha pre-release" with the last commit to laminas-cache 4.0.x-dev which still supports laminas-servicemanager v3 in order to allow people to refer to it while development is done on the other laminas packages to gradually support laminas-servicemanager v4.

I can understand when this suggestion is declined, but it might help others out to already adopt laminas-cache 4.0 in combination with other laminas packages?

from laminas-cache.

boesing avatar boesing commented on August 23, 2024

I will prepare laminas-cache v4 later this month but there is no cache adapter yet available which will support that version. So that wont help in your specific case. So you wont be able to use psr/cache v2+ at least for a couple of more weeks.

from laminas-cache.

boesing avatar boesing commented on August 23, 2024

I'll close here as I think this is a duplicate of #292

from laminas-cache.

holtkamp avatar holtkamp commented on August 23, 2024

I will prepare laminas-cache v4 later this month

Thanks, but that tagged version probably requires laminas-servicemanager v4, while my suggestion was to tag a version which still works with laminas-sevicemanager v3

but there is no cache adapter yet available which will support that version.

Not a problem since in some cases no adapter is even required, also see: #192

Anyhow, I understand my situation might be a bit exotic and I found a workaround, thanks for the responses!

from laminas-cache.

Related Issues (20)

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.