Swader / diffbot-php-client

[Deprecated - Maintenance mode - use APIs directly please!] The official Diffbot client library
MIT License
53 stars 20 forks source link

Pecl jsonc bug causes notices #12

Closed Swader closed 7 years ago

Swader commented 9 years ago

When using PHP with the "drop in replacement" jsonc from pecl, conversion of numbers over 64bits to strings fails because of this and this.

Details on situation here.

Looking for solutions on how to approach this, because Search API often returns unsigned 64bit ints (hashes), meaning they go over the BIGINT size for signed and thus cause an overflow.

Edit: additional clarification on this bug here.

Swader commented 9 years ago

Due to the incompetence and laziness of a single developer, this bug cannot be fixed. One way around it would be making Diffbot return strings instead of BIGINTs, but having a company change their API because one lazy dev from the PHP ecosystem couldn't be arsed to finish his work is kind of silly.

Todo: look into writing a custom JSON parser for Diffbot's use case.

Swader commented 7 years ago

No longer relevant on modern PHP.