Doc #74140 [NEW]: mysqli_begin_transaction returns FALSE

From: Date: Tue, 21 Feb 2017 11:59:36 +0000
Subject: Doc #74140 [NEW]: mysqli_begin_transaction returns FALSE
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14457@lists.php.net to get a copy of this message
From: ajoliveira at ajoliveira dot com Operating system: Ubuntu PHP version: 7.1.2 Package: MySQLi related Bug Type: Documentation Problem Bug description:mysqli_begin_transaction returns FALSE 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 bug report at https://bugs.php.net/bug.php?id=74140&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74140&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74140&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74140&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74140&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74140&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74140&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74140&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74140&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74140&r=support Expected behavior: https://bugs.php.net/fix.php?id=74140&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74140&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74140&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74140&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74140&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74140&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74140&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74140&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74140&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74140&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74140&r=mysqlcfg

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