PHP Doku:: Cancels (rolls back) an in-flight unit of work. - function.samconnection-rollback.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige DiensteSimple Asynchronous MessagingSAM FunktionenSAMConnection->rollback

Ein Service von Reinhard Neidl - Webprogrammierung.

SAM Funktionen

<<SAMConnection->remove

SAMConnection->send>>

SAMConnection->rollback

(PECL sam >= 0.1.0)

SAMConnection->rollback Cancels (rolls back) an in-flight unit of work.

Beschreibung

bool SAMConnection::rollback ( void )

Rolls back an in-flight unit of work.

Rückgabewerte

This method returns FALSE if an error occurs.

Beispiele

Beispiel #1 Cancelling an in-flight unit of work

<?php
if (!$conn->rollback()) {
  
// The rollback failed!
  
echo "Rollback failed ($conn->errno$conn->error";
}
?>


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)