With CFL's it is possible to use a magnetic ballast, and those ballasts almost don't care about temperature. Unless they get somewhere the Curie Point (typically several hundred degrees C), they are going to work just fine. Most high efficiency CFL's use electronic ballasts, and unfortunately they do care about temperatures, and suffer both performance and lifetime issues from operation at elevated temperatures.
LED's are even worse in that respect. About a year ago I tried replacing some 50 watt Halogen GU10 lamps with 9 watt LED replacements in an enclosed fixture. The LED's got so hot they melted the plastic lenses they were behind. Within a couple hundred hours, they were all effectively dead. Until LED efficiency gets a lot higher (and a doubling in LED efficiency changes the heat output from 85% to 70% of the input energy, so doubling the efficiency will make a big difference in light output, but not a huge difference in the heat dissipation requirements), or somebody finds a better way to dissipate the heat generated, LED lamps in fully enclosed fixtures are going to have problems.
The reduction in life expectancy of the LED bulbs is an admission of the heat dissipation problems. Each 10 degrees C the operating temperature goes up (18 degrees F) will essentially halve the life of the device, or in the case of philips, perhaps an admission of other problems. My early experiences with Philips CFL's were they didn't reach 10% of the claimed life, and they weren't even in enclosed fixtures!