Index: socket.php =================================================================== --- socket.php (revision 14184) +++ socket.php (working copy) @@ -266,7 +266,7 @@ return $this->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)) {