Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preloader Failing on deprecated cakephp core classes #9

Closed
cnizzardini opened this issue Feb 12, 2022 · 0 comments · Fixed by #10
Closed

Preloader Failing on deprecated cakephp core classes #9

cnizzardini opened this issue Feb 12, 2022 · 0 comments · Fixed by #10
Labels
bug Something isn't working
Milestone

Comments

@cnizzardini
Copy link
Owner

CakePHP version: 4.3 (but likely affects other versions)

Preloader fails on deprecated classes:

  • src/Database/Exception.php
  • src/Database/Expression/Comparison.php
  • src/Http/ControllerFactory.php
  • src/Http/Exception/MissingControllerException.php
  • src/Routing/Exception/MissingControllerException.php
php_1  | waiting for fpm...
php_1  | <br />
php_1  | <b>Warning</b>:  Cannot declare class Cake\Database\Exception, because the name is already in use in <b>/srv/app/vendor/cakephp/cakephp/src/Database/Exception.php</b> on line <b>16</b><br />
php_1  | <br />
php_1  | <b>Fatal error</b>:  Uncaught Error: Undefined constant &quot;ROOT&quot; in /srv/app/vendor/cakephp/cakephp/src/Core/functions.php:290
php_1  | Stack trace:
php_1  | #0 /srv/app/vendor/cakephp/cakephp/src/Database/Expression/Comparison.php(6): deprecationWarning('`Comparison` de...')
php_1  | #1 /srv/app/preload.php(121): require_once('/srv/app/vendor...')
php_1  | #2 {main}
php_1  |   thrown in <b>/srv/app/vendor/cakephp/cakephp/src/Core/functions.php</b> on line <b>290</b><br />
demo_php_1 exited with code 70
@cnizzardini cnizzardini added the bug Something isn't working label Feb 12, 2022
@cnizzardini cnizzardini added this to the v0.1.5 milestone Feb 12, 2022
cnizzardini added a commit that referenced this issue Feb 15, 2022
- Preloader Failing on deprecated cakephp core classes #9
- Adds new --cli option
- Only loads Classes and function files now
- Adds docker test to ensure php-fpm/cakephp loads with opcache preload enabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant