diff --git a/Examples/Example.php b/Examples/Example.php index 18f5d04..7e40f03 100644 --- a/Examples/Example.php +++ b/Examples/Example.php @@ -28,5 +28,7 @@ { echo $e->getMessage( ); } - - $Query->Disconnect( ); + finally + { + $Query->Disconnect( ); + } diff --git a/Examples/RconExample.php b/Examples/RconExample.php index cd76e23..7d96c66 100644 --- a/Examples/RconExample.php +++ b/Examples/RconExample.php @@ -28,5 +28,7 @@ { echo $e->getMessage( ); } - - $Query->Disconnect( ); + finally + { + $Query->Disconnect( ); + } diff --git a/Examples/View.php b/Examples/View.php index 6bdfca1..6e05f47 100644 --- a/Examples/View.php +++ b/Examples/View.php @@ -31,8 +31,10 @@ { $Exception = $e; } - - $Query->Disconnect( ); + finally + { + $Query->Disconnect( ); + } $Timer = Number_Format( MicroTime( true ) - $Timer, 4, '.', '' ); ?> diff --git a/README.md b/README.md index 073350e..ae3337e 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ The class also allows you to query servers using RCON although this only works f [Minecraft](http://www.minecraft.net) also uses Source RCON protocol, and this means you can use this class to send commands to your minecraft server while having engine set to Source engine. -**This library requires a [modern version](https://php.net/supported-versions.php) of PHP, so make sure you are using at least PHP 5.4 or newer.** +**This library requires a [modern version](https://php.net/supported-versions.php) of PHP, so make sure you are using at least PHP 5.5 or newer.** **:warning: Please do not create issues when you are unable to retrieve information from a server, unless you can prove that there is a bug within the library.** diff --git a/composer.json b/composer.json index bcc4c1e..5a29115 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ ], "require": { - "php": ">=5.4" + "php": ">=5.5" }, "autoload": {