Try to avoid 'zend_mm_heap corrupted' failures with phpunit
Fix #2878