cakephp: Class "Cake\Chronos\Date" not found

Description

Class "Cake\Chronos\Date" not found in /cakephp/vendor/cakephp/cakephp/src/I18n/FrozenDate.php:29

In the last Techempower benchmark CakePHP fail to run. With php-fpm, don’t show any error but don’t run. With Workerman also fail, but show this error.

Info: Bench build: https://tfb-status.techempower.com/unzip/results.2023-08-30-17-02-33-292.zip/results/20230824091415/cakephp-workerman/build/cakephp-workerman.log image

Bench run: https://tfb-status.techempower.com/unzip/results.2023-08-30-17-02-33-292.zip/results/20230824091415/cakephp-workerman/run/cakephp-workerman.log

Composer.json https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/PHP/cakephp/composer.json Here you can check the rest of files, including the dockerfiles.

Looks like a problem from the Cakephp side, but any help will be apreciated.

Thank you.

CakePHP Version

4.4.17

PHP Version

8.2.9

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Comments: 29 (13 by maintainers)

Most upvoted comments

@joanhey Try running composer install without --classmap-authoritative and see if it makes a difference with the new Chronos version.

So we can close?

The bench with CakePHP 5 is ready.

Framework JSON 1-query 20-query Fortunes Updates Plaintext
Cakephp 5.0.1 22,186 12,025 3,792 10,480 1,642 22,637
Cakephp 4.4.18 26,255 13,308 3,920 11,419 1,689 27,101

The new version is a bit slower. Adapterman is still slower than normal php-fpm, I’ll create a issue about that.

Updated the benchmark to CakePHP v5. https://github.com/TechEmpower/FrameworkBenchmarks/pull/8472 If anybody want to review it !!

Later I’ll send the results from v4.4 vs v5. And check also with Adapterman if it’s faster now.

@ndm2 yes I can change the branch and test without --classmap-authoritative.