cnizzardini / cakephp-preloader Goto Github PK
View Code? Open in Web Editor NEWAn OPCache Preloader for CakePHP 4 and 5 applications
License: MIT License
An OPCache Preloader for CakePHP 4 and 5 applications
License: MIT License
OPCache Preload only works for PHP 7.4
Load preload options from a config file (if present). CLI arguments take precedence.
CakePHP version: 4.3 (but likely affects other versions)
Preloader fails on deprecated classes:
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 "ROOT" 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
Likely due to changes in scripts. Port fix from v1 to v0: https://github.com/cnizzardini/cakephp-preloader/pull/17/files
Workaround is to remove the scripts section located at the bottom of the generated preload file and restart php-fpm.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.