Doc #74140 [Opn->Nab]: mysqli_begin_transaction returns FALSE

From: Date: Mon, 29 Jan 2018 23:34:23 +0000
Subject: Doc #74140 [Opn->Nab]: mysqli_begin_transaction returns FALSE
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15390@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74140&edit=1 ID: 74140 Updated by: vrana@php.net Reported by: ajoliveira at ajoliveira dot com Summary: mysqli_begin_transaction returns FALSE -Status: Open +Status: Not a bug Type: Documentation Problem Package: MySQLi related Operating System: Ubuntu PHP Version: 7.1.2 Block user comment: N Private report: N New Comment: It requires MySQL 5.6 or higher. MariaDB usually reports itself as MySQL 5.5. Previous Comments: ------------------------------------------------------------------------ [2017-02-21 11:59:32] ajoliveira at ajoliveira dot com Description: ------------ mysqli_begin_transaction with MYSQLI_TRANS_START_READ_WRITE consistently returns FALSE even if there is no error reported with mysqli_error PHP 7.0.13-0ubuntu0.16.04.1 (cli) ( NTS ) mysql Ver 15.1 Distrib 10.1.21-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 Was working on January 4, 2017. database is InnoDB Test script: --------------- example: $bd=mysqli_connect(NHOST,NUSER,NPASS,NNAME); if($bd==FALSE){ echo mysqli_error(); return FALSE; } if(mysqli_begin_transaction($bd,MYSQLI_TRANS_START_READ_WRITE)==FALSE){ echo mysqli_error(); mysqli_close($bd); return FALSE; } Expected result: ---------------- Returning FALSE only when an error is found ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74140&edit=1

« previous php.doc.bugs (#15390) next »