The supporting of windows
- Dominant language
- PHP
- Stars
- 308
- Forks
- 38
- PR merge metrics
- No merged PRs in 30d
Description
Currently this lib not work in windows, because:
1)
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
define('SOFTMOCKS_ROOT_PATH', '');
} else {
define('SOFTMOCKS_ROOT_PATH', '/');
}
2)
\QA\SoftMocks::doRewrite
$delimiter = (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' ? ';' : ':');
foreach (explode($delimiter, get_include_path()) as $dir) {
possible, there is more issues
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the definition of SOFTMOCKS_ROOT_PATH and QA\SoftMocks::doRewrite. Inspect their Windows-specific path and include_path handling, then look for other platform assumptions in the same flow. Done means the library works on Windows and the identified compatibility cases are covered by the project's tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100