V40 1.9 T, goes out when it gets warm

Hello community a friend of mine wants to buy a Volvo V40, but the car has a problem! As long as the car is cold he drives completely normal, he gets warm, he no longer takes gas, swallows himself and then goes out. He meant it feels like steam bubbles when he starts to get warm !!! He also starts again when he has become cold !!! Furthermore he said at the rail valve he produces “air bubbles” petrol pump and petrol pipes have been renewed ! It is about a 97 he with 1855 ccm and 147 kw! Who knows what that could be? Are grateful for every tip, would be a pity if the Volvo is sold elsewhere have already looked over the search but unfortunately not found anything