laminas / laminas-log

Robust, composite logger with filtering, formatting, and PSR-3 support
https://docs.laminas.dev/laminas-log/
BSD 3-Clause "New" or "Revised" License
26 stars 30 forks source link

Incorrect minimum version for PHP or wrong dependency for laminas/laminas-zendframework-bridge #49

Closed sumariva closed 1 year ago

sumariva commented 1 year ago

Bug Report

Q A
Version(s) 2.5.1

Summary

I checked the packagist for the right version to use on my environment, a server with PHP 5.4.x. According to the package list for laminas-laminas-log, version 2.5.1 should be compatible with PHP 5.4. It states that the minimum version should be PHP: >=5.3.23.

But when targeting the project to use a PHP 5.4 environment, it causes a dependency unsatisfiable. The problem is the dependency laminas/laminas-zendframework-bridge ^1.0, that requires PHP 5.6. So, this dependency is wrong or the laminas-log minimum requirements are incorrect.

Current behavior

When executing the composer -W update command, it reports requirements not satisfiable. Your requirements could not be resolved to an installable set of packages.

Problem 1

Expected behavior

Expected that composer could find a set of packages and update the project.

laminas-bot commented 1 year ago

This package is considered feature-complete, and is now in security-only maintenance mode, following a decision by the Technical Steering Committee. If you have a security issue, please follow our security reporting guidelines. If you wish to take on the role of maintainer, please nominate yourself

If you are looking for an actively maintained package alternative, we recommend:

Ocramius commented 1 year ago

Sounds about right: using an older version would require zendframework/zend-log.

From our end, we don't patch for EOL'd PHP versions anyway, so you would need to move to PHP 8.0 or newer regardless.

sumariva commented 1 year ago

Ok, so the current solution is to replace the package. I will check if the zendframework/zend-log has the PHP error handler, the feature that I mostly used for laminas-log. I facing some bug on the application not been reported anywhere on server, and tried to add this logger to capture output.

Ocramius commented 1 year ago

If you added this package from scratch, perhaps consider using the more flexible monolog/monolog, which also comes with an error handler