Fix issue with transaction for mysqli.
begin_transaction() methods exists for php>=5.5.0. Thanks to Franck.