We're updating the issue view to help you get more done. 

More consistent handling of Windows vs Posix specifics

Description

There are several aspects regarding handling the Windows vs Posix environment that can be improved and/or handled automatically.

I propose adding such a section into setup.php that defines and automatically sets global constants and flags:

if (defined('PHP_WINDOWS_VERSION_BUILD')) {
define('_CA_SYSTEM_WINDOWS_', true);
define('_CA_SYSTEM_XXX_', 'Windows XXX value');
define('_CA_SYSTEM_YYY_', 'Windows YYY value');
} else {
define('_CA_SYSTEM_POSIX_', true);
define('_CA_SYSTEM_XXX_', 'Posix XXX value');
define('_CA_SYSTEM_YYY_', 'Posix YYY value');
}

These constants should replace calls to caIsPOSIX() and caGetOSFamily() routines. They also will replace hard-coded '/dev/null' with constant set to 'nul' on Windows systems.

Environment

Windows 7, Bitnami WAMP

Assignee

User known

Reporter

oper251

Labels

None

Affects versions

Priority

Minor
Configure