I looked at the source code. The script configuration does the following:
PHP_OS=`uname | xargs`
AC_DEFINE_UNQUOTED(PHP_OS,"$PHP_OS",[uname output])
main.c :
char *php_os;
php_os=PHP_OS;
REGISTER_MAIN_STRINGL_CONSTANT("PHP_OS", php_os, strlen(php_os), CONST_PERSISTENT | CONST_CS);
, PHP_OS PHP - , PHP_OS C, # , configure script, uname at .
, , , , .
Windows: main.c PHP_OS "WINNT", WIN32. , , , Unix Windows .