|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-26 23:59 UTC] tony2001@php.net
[2005-01-27 11:21 UTC] georg@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 08:00:01 2025 UTC |
Description: ------------ Hello, Functions rollback() works fine expected that the return value is inverted. if rollback() failed, return value is TRUE, if rollback() success, return value is FALSE. The problem is that the Documentation say the opposite. So for my code work fine, I've to write: if( $dbh1->rollback() ){ printf( "DBH1 Failed to rollback : %s \n", $dbh1->error); } bye cyrille Reproduce code: --------------- if( $dbh1->rollback() ){ printf( "DBH1 Failed to rollback : %s \n", $dbh1->error); } Expected result: ---------------- if( ! $dbh1->rollback() ){ printf( "DBH1 Failed to rollback : %s \n", $dbh1->error); } or if( $dbh1->rollback() == FALSE ){ printf( "DBH1 Failed to rollback : %s \n", $dbh1->error); }