Skip to content

PHP-84 for UBI10 failed #165

Open
Open

Description

@phracek

The building applicatoin for php84-ubi10 failed for this reason.

The branch that is used for this is 5.X

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - laminas/laminas-diactoros is locked to version 3.3.0 and an update of this package was not requested.
    - laminas/laminas-diactoros 3.3.0 requires php ~8.1.0 || ~8.2.0 || ~8.3.0 -> your php version (8.4.21) does not satisfy that requirement.
  Problem 2
    - laminas/laminas-httphandlerrunner is locked to version 2.9.0 and an update of this package was not requested.
    - laminas/laminas-httphandlerrunner 2.9.0 requires php ~8.1.0 || ~8.2.0 || ~8.3.0 -> your php version (8.4.21) does not satisfy that requirement.
  Problem 3
    - cakephp/cakephp is locked to version 5.0.4 and an update of this package was not requested.
    - cakephp/cakephp 5.0.4 requires laminas/laminas-diactoros ^3.0 -> satisfiable by laminas/laminas-diactoros[3.3.0].
    - laminas/laminas-diactoros 3.3.0 requires php ~8.1.0 || ~8.2.0 || ~8.3.0 -> your php version (8.4.21) does not satisfy that requirement.

error: build error: building at STEP "RUN /tmp/scripts/assemble": while running runtime: exit status 2

@remicollet Can you please help?

Activity

  1. phracek commented on Jun 4, 2026

    @phracek
    MemberAuthor

    @remicollet Please write down what we have to do, so we can use later on. Especially for @jplesnik .

  2. remicollet commented on Jun 16, 2026

    @remicollet

    This application requires cake framework version 3.9 ("php": ">=5.6.0,<8.0.0"),which is not compatible with recent PHP versions

    The applications needs to be upgrade to use cake 4.x ("php": ">=7.4.0,<9"), or 5.x ("php": ">=8.2")

  3. phracek commented on Jun 16, 2026

    @phracek
    MemberAuthor

    @remicollet After upgrade of 5.X/composer.json to php: >= 8.2 I receive an error for version 8.3

    Installing dependencies from lock file (including require-dev)
    Verifying lock file contents can be installed on current platform.
    Your lock file does not contain a compatible set of packages. Please run composer update.
    
      Problem 1
        - symfony/filesystem is locked to version v8.1.0 and an update of this package was not requested.
        - symfony/filesystem v8.1.0 requires php >=8.4.1 -> your php version (8.3.31) does not satisfy that requirement.
      Problem 2
        - symfony/string is locked to version v8.1.0 and an update of this package was not requested.
        - symfony/string v8.1.0 requires php >=8.4.1 -> your php version (8.3.31) does not satisfy that requirement.
      Problem 3
        - symfony/finder is locked to version v8.1.0 and an update of this package was not requested.
        - symfony/finder v8.1.0 requires php >=8.4.1 -> your php version (8.3.31) does not satisfy that requirement.
      Problem 4
        - symfony/process is locked to version v8.1.0 and an update of this package was not requested.
        - symfony/process v8.1.0 requires php >=8.4.1 -> your php version (8.3.31) does not satisfy that requirement.
      Problem 5
        - composer/composer is locked to version 2.10.1 and an update of this package was not requested.
        - composer/composer 2.10.1 requires symfony/filesystem ^5.4.45 || ^6.4.24 || ^7.1.10 || ^8.0 -> satisfiable by symfony/filesystem[v8.1.0].
        - symfony/filesystem v8.1.0 requires php >=8.4.1 -> your php version (8.3.31) does not satisfy that requirement.
    
    

    I hope new branch will not be needed.

  4. remicollet commented on Jun 30, 2026

    @remicollet

    The main issue is that you use "composer.lock"

    This file needs to be refreshed (or deleted)

    I also recommend using the platform setting, so you can run "composer install" (to create the composer.lock) with any version

    Using

    diff --git a/composer.json b/composer.json
    index bbcb495..20251ca 100644
    --- a/composer.json
    +++ b/composer.json
    @@ -5,7 +5,7 @@
         "type": "project",
         "license": "MIT",
         "require": {
    -        "php": ">=8.1",
    +        "php": ">=8.2",
             "cakephp/cakephp": "^5.0.1",
             "cakephp/migrations": "^4.0.0",
             "cakephp/plugin-installer": "^2.0",
    @@ -53,6 +53,9 @@
             "allow-plugins": {
                 "cakephp/plugin-installer": true,
                 "dealerdirect/phpcodesniffer-composer-installer": true
    +        },
    +        "platform": {
    +            "php": "8.2"
             }
         }
     }
    
    

    Seems to work (tested with PHP 8.2, PHP 8.3, PHP 8.4, and even PHP 8.5)

  5. remicollet commented on Jun 30, 2026

    @remicollet

    Results:

    $ composer show
    brick/varexporter                              0.7.0   A powerful alternative to var_export(), which can export closures and objects without __set_state()
    cakephp/bake                                   3.7.1   Bake plugin for CakePHP
    cakephp/cakephp                                5.3.6   The CakePHP framework
    cakephp/cakephp-codesniffer                    5.3.0   CakePHP CodeSniffer Standards
    cakephp/chronos                                3.5.0   A simple API extension for DateTime.
    cakephp/debug_kit                              5.2.4   CakePHP Debug Kit
    cakephp/migrations                             4.9.7   Database Migration plugin for CakePHP based on Phinx
    cakephp/plugin-installer                       2.0.2   A composer installer for CakePHP plugins.
    cakephp/twig-view                              2.1.2   Twig powered View for CakePHP
    composer/ca-bundle                             1.5.12  Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.
    composer/class-map-generator                   1.7.3   Utilities to scan PHP code and generate class maps.
    composer/composer                              2.10.1  Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.
    composer/metadata-minifier                     1.0.0   Small utility library that handles metadata minification and expansion.
    composer/pcre                                  3.4.0   PCRE wrapping library that offers type-safe preg_* replacements.
    composer/semver                                3.4.4   Semver library that offers utilities, version constraint parsing and validation.
    composer/spdx-licenses                         1.6.0   SPDX licenses list and validation library.
    composer/xdebug-handler                        3.0.5   Restarts a process without Xdebug.
    dealerdirect/phpcodesniffer-composer-installer 1.2.1   PHP_CodeSniffer Standards Composer Installer Plugin
    doctrine/sql-formatter                         1.5.4   a PHP SQL highlighting library
    jasny/twig-extensions                          1.3.1   A set of useful Twig filters
    josegonzalez/dotenv                            4.0.0   dotenv file parsing for PHP
    justinrainbow/json-schema                      6.10.0  A library to validate a json schema.
    laminas/laminas-diactoros                      3.8.0   PSR HTTP Message implementations
    laminas/laminas-httphandlerrunner              2.13.0  Execute PSR-15 RequestHandlerInterface instances and emit responses they generate.
    league/container                               5.2.0   A fast and intuitive dependency injection container.
    m1/env                                         2.2.0   Env is a lightweight library bringing .env file parser compatibility to PHP. In short - it enables you to read .env files w...
    marc-mabe/php-enum                             4.7.2   Simple and fast implementation of enumerations with native PHP
    mobiledetect/mobiledetectlib                   3.74.4  Mobile_Detect is a lightweight PHP class for detecting mobile devices. It uses the User-Agent string combined with specific...
    myclabs/deep-copy                              1.13.4  Create deep copies (clones) of your objects
    nikic/php-parser                               5.7.0   A PHP parser written in PHP
    phar-io/manifest                               2.0.4   Component for reading phar.io manifest information from a PHP Archive (PHAR)
    phar-io/version                                3.2.1   Library for handling version information and constraints
    phpstan/phpdoc-parser                          2.3.2   PHPDoc parser with support for nullable, intersection and generic types
    phpunit/php-code-coverage                      10.1.16 Library that provides collection, processing, and rendering functionality for PHP code coverage information.
    phpunit/php-file-iterator                      4.1.0   FilterIterator implementation that filters files based on a list of suffixes.
    phpunit/php-invoker                            4.0.0   Invoke callables with a timeout
    phpunit/php-text-template                      3.0.1   Simple template engine.
    phpunit/php-timer                              6.0.0   Utility class for timing
    phpunit/phpunit                                10.5.63 The PHP Unit Testing framework.
    psr/clock                                      1.0.0   Common interface for reading the clock.
    psr/container                                  2.0.2   Common Container Interface (PHP FIG PSR-11)
    psr/event-dispatcher                           1.0.0   Standard interfaces for event handling.
    psr/http-client                                1.0.3   Common interface for HTTP clients
    psr/http-factory                               1.1.0   PSR-17: Common interfaces for PSR-7 HTTP message factories
    psr/http-message                               2.0     Common interface for HTTP messages
    psr/http-server-handler                        1.0.2   Common interface for HTTP server-side request handler
    psr/http-server-middleware                     1.0.2   Common interface for HTTP server-side middleware
    psr/log                                        3.0.2   Common interface for logging libraries
    psr/simple-cache                               3.0.0   Common interfaces for simple caching
    react/promise                                  3.3.0   A lightweight implementation of CommonJS Promises/A for PHP
    robmorgan/phinx                                0.16.10 Phinx makes it ridiculously easy to manage the database migrations for your PHP app.
    sebastian/cli-parser                           2.0.1   Library for parsing CLI options
    sebastian/code-unit                            2.0.0   Collection of value objects that represent the PHP code units
    sebastian/code-unit-reverse-lookup             3.0.0   Looks up which function or method a line of code belongs to
    sebastian/comparator                           5.0.5   Provides the functionality to compare PHP values for equality
    sebastian/complexity                           3.2.0   Library for calculating the complexity of PHP code units
    sebastian/diff                                 5.1.1   Diff implementation
    sebastian/environment                          6.1.0   Provides functionality to handle HHVM/PHP environments
    sebastian/exporter                             5.1.4   Provides the functionality to export PHP variables for visualization
    sebastian/global-state                         6.0.2   Snapshotting of global state
    sebastian/lines-of-code                        2.0.2   Library for counting the lines of code in PHP source code
    sebastian/object-enumerator                    5.0.0   Traverses array structures and object graphs to enumerate all referenced objects
    sebastian/object-reflector                     3.0.0   Allows reflection of object attributes, including inherited and non-public ones
    sebastian/recursion-context                    5.0.1   Provides functionality to recursively process PHP variables
    sebastian/type                                 4.0.0   Collection of value objects that represent the types of the PHP type system
    sebastian/version                              4.0.1   Library that helps with managing the version number of Git-hosted PHP projects
    seld/jsonlint                                  1.12.1  JSON Linter
    seld/phar-utils                                1.2.1   PHAR file format utilities, for when PHP phars you up
    seld/signal-handler                            2.0.2   Simple unix signal handler that silently fails where signals are not supported for easy cross-platform development
    slevomat/coding-standard                       8.30.1  Slevomat Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional ch...
    squizlabs/php_codesniffer                      4.0.1   PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
    symfony/config                                 7.4.14  Helps you find, load, combine, autofill and validate configuration values of any kind
    symfony/console                                7.4.14  Eases the creation of beautiful and testable command line interfaces
    symfony/deprecation-contracts                  3.7.1   A generic function and convention to trigger deprecation notices
    symfony/filesystem                             7.4.11  Provides basic utilities for the filesystem
    symfony/finder                                 7.4.14  Finds files and directories via an intuitive fluent interface
    symfony/polyfill-ctype                         1.37.0  Symfony polyfill for ctype functions
    symfony/polyfill-intl-grapheme                 1.38.1  Symfony polyfill for intl's grapheme_* functions
    symfony/polyfill-intl-normalizer               1.38.0  Symfony polyfill for intl's Normalizer class and related functions
    symfony/polyfill-mbstring                      1.38.2  Symfony polyfill for the Mbstring extension
    symfony/polyfill-php73                         1.37.0  Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
    symfony/polyfill-php80                         1.37.0  Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
    symfony/polyfill-php81                         1.38.1  Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions
    symfony/polyfill-php84                         1.38.1  Symfony polyfill backporting some PHP 8.4+ features to lower PHP versions
    symfony/process                                7.4.13  Executes commands in sub-processes
    symfony/service-contracts                      3.7.1   Generic abstractions related to writing services
    symfony/string                                 7.4.13  Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way
    theseer/tokenizer                              1.3.1   A small library for converting tokenized PHP source code into XML and potentially other formats
    twig/markdown-extra                            3.26.0  A Twig extension for Markdown
    twig/twig                                      3.27.1  Twig, the flexible, fast, and secure template language for PHP
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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