v1.0.2 - Maleo Senkawor Patch Release
Bug Fixes & Reliability Improvements
This patch release addresses several reliability and robustness issues in the Bootstrap process and utility loader.
Changes:
-
Bootstrap Reliability Fixes (
src/lib/core/Bootstrap.php)- Database connection now fails gracefully when credentials are missing or invalid
- DAOs and services now only instantiate when a valid database connection exists
- Added null coalescing operators for array keys that may not exist
- Added guards to prevent session operations in CLI/header-sent scenarios
- Made
applySecurity()resilient to utility function errors
-
Utility Loader Fixes (
src/lib/utility-loader.php,src/generate-utility-list.php)- Fixed duplicate function declaration error for
load_core_utilities() - Updated generator to produce safe function declarations that prevent redeclaration errors
- Properly guards function calls to prevent "function does not exist" errors
- Fixed duplicate function declaration error for
-
Test Infrastructure (
tests/)- Added comprehensive unit tests for Bootstrap class (43 tests, 89 assertions)
- Updated test bootstrap to properly load critical utility functions
- Tests cover configuration loading, error handling, edge cases, and more
Files Changed:
src/lib/core/Bootstrap.phpsrc/lib/utility-loader.phpsrc/generate-utility-list.phptests/bootstrap.phptests/unit/BootstrapTest.php(new)
Maleo Senkawor - Honoring Macrocephalon maleo, the critically endangered megapode endemic to Sulawesi, Indonesia. This large bird, known for its distinctive bony casque and remarkable incubation strategy using geothermal and solar heat, faces severe threats from habitat loss and egg poaching. With only an estimated 4,000–7,000 breeding pairs remaining in the wild, the maleo is listed as Critically Endangered on the IUCN Red List and protected under CITES Appendix I. Conservation efforts by organizations like the Wildlife Conservation Society and the Alliance for Tompotika Conservation are vital to safeguarding this unique species and its habitat.