Skip to content

Commit

Permalink
Fix extra parenthesis from PR causing parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
fundead committed Jan 6, 2014
1 parent 8d6b6e7 commit d92b439
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Raygun4php/RaygunClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d92b439

Please sign in to comment.