On windows8 I got this with php 5.3:
echo sys_get_temp_dir();
output:
C:\Windows
Am I not understand something or it is a bug?
UPD
trying $_ENV
:
<?php
var_export($_ENV);
output:
array ( )
Checking upload_tmp_dir
:
<?php
echo ini_get('upload_tmp_dir');
output:
C:\Windows\Temp