Phalcon\Loader class-not-found error after Linux deployment
0 reputation · 02 Jun 2024, 10:43 UTC
Goal
Diagnose why a Phalcon application throws a missing-class error immediately after deployment to Linux while running locally. The focus is the Phalcon\Loader autoloader and whether the error originates from an extension/userland version mismatch or case-sensitive path resolution.
Constraints and uncertainty
Phalcon 4 and 5 reorganized namespaces and file layout compared with Phalcon 3, so loader registration and autoload maps may need updating. Case-insensitive local filesystems can hide incorrect class casing that fails on Linux. The Phalcon C extension must be loaded and match the installed userland package, but no specific version or error has been observed.
Which checks distinguish a missing Phalcon extension from a loader case-sensitivity issue? What verifies loader prefixes and directories against exact file casing on Linux? What version assumptions apply when comparing Phalcon 3, 4, and 5 namespace layouts?