Skip to content

Fix class file name casing for Linux compatibility#27

Open
dbeja wants to merge 1 commit into
masterfrom
issue/26-crash-case-sensitive
Open

Fix class file name casing for Linux compatibility#27
dbeja wants to merge 1 commit into
masterfrom
issue/26-crash-case-sensitive

Conversation

@dbeja

@dbeja dbeja commented May 2, 2025

Copy link
Copy Markdown
Member

Fixes #26.

Description

This PR updates the filename class-quickal.php to class-QuickAL.php to match the class name QuickAL and ensure compatibility with case-sensitive filesystems (e.g. most Linux servers).

Issue

On Linux, the autoloader was failing because it was looking for class-QuickAL.php (based on the class name QuickAL), but the actual file was named class-quickal.php. This worked locally on macOS (which has a case-insensitive filesystem by default) but caused fatal errors in production.
Issue reported on #25 by @jrgong420.

Solution

Renamed the file using git mv to preserve version history and ensure Git tracks the change in casing.

Why this approach

  • Keeps the file name consistent with the class name
  • Avoids hacks like forcing lowercase logic in the autoloader
  • Follows better naming conventions for maintainability and PSR-like structure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash on on case-sensitive file systems

1 participant