zts and 5.6 fixes
fix test for newer internal datetime format
use php_pq_callback_recurse