Windows system support - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29) +--- Thread: Windows system support (/showthread.php?tid=92138) |
Windows system support - ozornick - 12-10-2024 I would try to adapt all the tests for Windows 11 and a simple PHP 8 installation. It is possible to check for XAMPP after. But I need feedback from Windows developers and users. See https://github.com/codeigniter4/CodeIgniter4/pull/9123#issuecomment-2525260952 To begin with, I have highlighted the tasks for corrections: 1. Is it necessary to do this? I have some time for this. 2. How can we better define the global function PHP Code: function _realpath(string $path): string before calling Boot.php ? While I'm trying to register it in index.php, spark, system/Test/bootstrap.php. They are the first to set up paths 3. Another function PHP Code: function normalize_path(string $path): string is located in system/Common.php. Works with a path-string. 4. Additionally, we no longer need DIRECTORY_SEPARATOR - all paths are given to Unix. Replace with "/". I consider DS useless as long as there are problems with Windows. If everything works out, we will be able to guarantee work in XAMPP, laragon... 5. Replace all line breaks with "\n". The lines may have different endings if the file was saved in Windows and opened on Unix. Windows CMD also needs to be rewritten to "\n". Otherwise, there will be errors in the tests 6. There are problems with chmod(), symlink(), vfs:// Should I skip them or issue warnings for phpunit? 7. Several tests can be deleted as they check the differences for Win/Unix.Or do they need to be marked somehow? 8. There are problems with SQLite3 if the database is in :memory:. It doesn't seem to reset when closed or deleted... The data remains in the tables between the tests In general, there are practically no errors after my changes right now. But for future developments, we need to normalize paths everywhere. I don't know how you feel about this RE: Windows system support - datamweb - 12-12-2024 @ozornick I’m on Windows. If you submit a PR, feel free to tag me. I might respond with a slight delay, but I’ll definitely be there. RE: Windows system support - InsiteFX - 12-13-2024 Likewise I' am also on Windows 11 Pro. |