removed ereg in fpdf (#51)
use set_magic_quotes_runtime only if needed (fix #50)