Index: branches/5.1.x/core/kernel/utility/socket.php =================================================================== diff -u -N -r13086 -r14201 --- branches/5.1.x/core/kernel/utility/socket.php (.../socket.php) (revision 13086) +++ branches/5.1.x/core/kernel/utility/socket.php (.../socket.php) (revision 14201) @@ -1,6 +1,6 @@ raiseError('not connected'); } - if (is_null($blocksize) && !OS_WINDOWS) { + if (is_null($blocksize) && (substr(PHP_OS, 0, 3) != 'WIN')) { return fwrite($this->fp, $data); } else { if (is_null($blocksize)) {