Fix GH-12767: Fixed to be able to change autocommit mode using setAttribute Signed-off-by: Gina Peter Banyard <girgias@php.net>