Closed pdscopes closed 7 years ago
No worries! Thanks for the quick PR to get it fixed 👍 I'll test asap.
Merged tagged release 1.0.7 with this. Also setup Travis while we at it ;)
Thanks for your contribution!
Not a problem. Thanks for originally writing the library and maintaining it!
On 26 Oct 2016 06:55, "Leon Jacobs" notifications@github.com wrote:
Merged tagged release 1.0.7 with this. Also setup Travis while we at it ;)
Thanks for your contribution!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/leonjza/PHPNessusNG/pull/16#issuecomment-256256296, or mute the thread https://github.com/notifications/unsubscribe-auth/AMtksvnrWrT7lzAWQO9e7gb1d4-Sv8Boks5q3utNgaJpZM4Kf9_f .
Hi again,
Embarrassingly, it seems that I did not properly fix the problem with empty responses with my first pull request. I have now corrected myself, sorry for the inconvenience I've caused!
It turns out
json_decode('')
causesjson_last_error()
andjson_last_error_msg()
to response with4
andSyntax Error
respectively. To resolve to issue I added an extra conditional check for empty strings before thejson_decode
.