Estouro de memória e timeout não caem no try/catch e a página fica branca. Registre um shutdown handler com error_get_last…