Le direttive magic erano a off tranne
magic_quotes_runtime = On
appunto impostata a On

uff... che stordito....