From d92b43984b1b75f79e29faf64885e8730fb9e788 Mon Sep 17 00:00:00 2001 From: fundead Date: Tue, 7 Jan 2014 09:15:15 +1300 Subject: [PATCH] Fix extra parenthesis from PR causing parse error --- README.md | 2 ++ src/Raygun4php/RaygunClient.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2c65c45..2c3889b 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,8 @@ This will echo the HTTP response code. Check the list above, and create an issue ## Changelog +* Version 1.3.3: Hotfix for script error in v1.3.2 + * Version 1.3.2: UTF-8 encoding routine from previous version updated to remove PHP 5.5 deprecated function * Version 1.3.1: Request data, specifically $_SERVER variables, are now correctly encoded in UTF-8 diff --git a/src/Raygun4php/RaygunClient.php b/src/Raygun4php/RaygunClient.php index 6b3d425..cc9fbc4 100644 --- a/src/Raygun4php/RaygunClient.php +++ b/src/Raygun4php/RaygunClient.php @@ -292,7 +292,7 @@ private function post($data_to_send, $cert_path) } function toJsonRemoveUnicodeSequences($struct) { - return preg_replace_callback("/\\\\u([a-f0-9]{4})/", function($matches){ return iconv('UCS-4LE','UTF-8',pack('V', hexdec("U$matches[1]"))); }, json_encode($struct)) ); + return preg_replace_callback("/\\\\u([a-f0-9]{4})/", function($matches){ return iconv('UCS-4LE','UTF-8',pack('V', hexdec("U$matches[1]"))); }, json_encode($struct)); } public function __destruct()