Add suggestions from the community.

Don't just change the PDO object attribute without asking; throw an InvalidArgument Exception instead.
Check that the ini_set() call succeeded after its called.