From 205ad2ec9750d21a3176dd19281a4e6edcd4de73 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Tue, 15 Dec 2015 15:40:19 +0200 Subject: [PATCH] Send initial challenge request as 4 byte int Closes #79 --- SourceQuery/SourceQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SourceQuery/SourceQuery.php b/SourceQuery/SourceQuery.php index 3f4c970..8d897d0 100644 --- a/SourceQuery/SourceQuery.php +++ b/SourceQuery/SourceQuery.php @@ -465,7 +465,7 @@ $Header = self::A2S_SERVERQUERY_GETCHALLENGE; } - $this->Socket->Write( $Header, 0xFFFFFFFF ); + $this->Socket->Write( $Header, "\xFF\xFF\xFF\xFF" ); $Buffer = $this->Socket->Read( ); $Type = $Buffer->GetByte( );