PHP SDK reports truncated errors when it doesn't have to (and how to fix it)

Demos updated: PHP Examples (GitHub)