Partial fix for bug #68365 (zend_mm_heap corrupted after memory overflow in zend_hash_copy)