German EU LAW: http://eur-lex.europa.eu/legal-content/DE/TXT/PDF/?uri=CELEX... (99/44/EG)
Edit: Well the most important fact of course is that there is no "eu law" there are just policies that the countries than can enforce/make a law out of it (http://ec.europa.eu/info/law/law-making-process/overview-law...) well european can than make claims against the country, but sometimes they even fail to do that.
In practice it's a mess system. Courts choose and pick however they want to implement the directives, even in countries where courts should be independent the ruling political countries have enough pressure on the courts. Sometimes they even enforce invalidated directives which is unlawful but then again if a country has enough money they could just pay the fines. Therefore there is so much unhappiness about the EU in the general populace, local politicians blame the EU laws, EU politicians blame the local laws and no one is accountable, it really sucks and isn't what a democracy is supposed to be.
On top of that, as merb said, following the EU directive, local law (in France, that's the Hamon bill) says the legal warranty of compliance covers for the whole two years. So Apple can tell me to buzz off past the first year if I bought their hardware from Amazon, but so that I can go through them directly instead of going the roundabout way through the seller during the first year. The seller can never tell you to buzz of (as long as you duly prove the defect past 6 months as merb said), even during the time a possible commercial warranty applies, but it can be more efficient to go through the manufacturer directly, as is the case with Apple Stores, but I've been using this for other brands where the wait list was months long through the seller whereas the manufacturer fixed it in less than a week and even footed the bill for the postage.