1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-08-15 04:24:09 +02:00

Enable configuration fix for solving Windows 2 WSL2 issue with is_readable/is_writable #189

This commit is contained in:
Mikael Roos
2022-11-17 15:40:43 +01:00
parent d5ca10cebc
commit 4589b3b3cd
4 changed files with 31 additions and 2 deletions

View File

@@ -21,6 +21,15 @@ if (!defined("CIMAGE_DEBUG")) {
define("CIMAGE_DEBUG_FILE", "/tmp/cimage");
}
/**
* Set this if you work with a webserver in Windows and try to access files
* within WSL2.
* The issue seems to be with functions like `is_writable()` and
* `is_readable()`.
* When WINDOWS2WSL is defined (to any value) it ignores these functions.
*/
#define('WINDOWS2WSL', 1);
return array(