ZapMachine/kanban/tasks/012-fix-autoloader-use-path-separator-instead-of.md

22 lines
816 B
Markdown

---
id: 12
title: 'Fix autoloader: use PATH_SEPARATOR instead of hardcoded '':'''
status: done
priority: high
created: 2026-07-17T03:57:06.82901804+02:00
updated: 2026-07-20T14:15:55.809367918+02:00
started: 2026-07-20T14:15:55.814059562+02:00
completed: 2026-07-20T14:15:55.814059562+02:00
tags:
- framework
- bug
class: standard
---
From framework review (docs/framework_review.md). conf/init.php uses explode(':', get_include_path()) but the include path separator is ':' on Unix and ';' on Windows. Makes the autoloader fail on Windows. Fix: explode(PATH_SEPARATOR, get_include_path()).
[[2026-07-17]] Fri 12:27
Changed explode(':', ...) to explode(PATH_SEPARATOR, ...) in conf/init.php. PHP passes php -l.
[[2026-07-17]] Fri 12:27
P0-3 fixed. One-line change in conf/init.php. Ready for your commit.