jmathai / epiphany

A micro PHP framework that's fast, easy, clean and RESTful. The framework does not do a lot of magic under the hood. It is, by design, very simple and very powerful.
https://github.com/jmathai/epiphany
Other
686 stars 139 forks source link

Api - No result when too much results #104

Closed M01n34u closed 6 years ago

M01n34u commented 6 years ago

Hello !

When I make PDO request, I can have a lot of result, but nothing is returned. I tried to var_dump tht fetchall, no problem, I have everything. But in the end the API response is empty.

Thanks a lot

jmathai commented 6 years ago

Can you see if there is anything in your error logs? I suspect that you might be running out of memory if the result set is too large.

M01n34u commented 6 years ago

Ok, I found what is going wrong. UTF8... If I have a bad encode character in my function return, no output.

I have to array_map_recursive("utf8_encode", $fetched_result)