Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid characters passed for attempted conversion #126

Closed
takwing opened this issue Jun 30, 2020 · 5 comments · Fixed by #127
Closed

Invalid characters passed for attempted conversion #126

takwing opened this issue Jun 30, 2020 · 5 comments · Fixed by #127
Labels

Comments

@takwing
Copy link

takwing commented Jun 30, 2020

With php7.4, the error "Invalid characters passed for attempted conversion" is triggered at /mindscape/raygun4php/src/Raygun4php/RaygunMessage.php:

@robbieaverill
Copy link
Contributor

Thanks for raising this issue. Do you have a full stack trace available?

@takwing
Copy link
Author

takwing commented Jul 1, 2020

#0 Raygun4php\RaygunClient::SendError called at [/htdocs/classes/helpers/MyErrorHandler.php:74]
#1 MyErrorHandler::error_handler called at [:0]
#2 ::hexdec called at [/htdocs/lib/Raygun4php/RaygunClient.php:419]
#3 Raygun4php\RaygunClient::Raygun4php\{closure} called at [:0]
#4 ::preg_replace_callback called at [/htdocs/lib/Raygun4php/RaygunClient.php:419]
#5 Raygun4php\RaygunClient::toJsonRemoveUnicodeSequences called at [/htdocs/lib/Raygun4php/RaygunClient.php:324]
#6 Raygun4php\RaygunClient::Send called at [/htdocs/lib/Raygun4php/RaygunClient.php:127]
#7 Raygun4php\RaygunClient::SendException called at [/htdocs/classes/helpers/MyErrorHandler.php:132

@robbieaverill
Copy link
Contributor

@takwing can you please provide the version of this package you're using? composer show mindscape/raygun4php

@robbieaverill
Copy link
Contributor

Nevermind, I can reproduce the error in existing unit tests.

@robbieaverill
Copy link
Contributor

You're welcome to propose a backport of that patch to 1.8 if you'd like, I'll release that in 2.0.x however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants