Verified Commit 783419d4 authored by Jess's avatar Jess
Browse files

SA-CORE-2025-006 by anzuukino, mcdruid, larowlan, greggles, longwave, poker10,...

SA-CORE-2025-006 by anzuukino, mcdruid, larowlan, greggles, longwave, poker10, catch, xjm, drumm, akalata, ram4nd
parent 3642b22e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -38,6 +38,13 @@ public function __destruct() {
    $this->connection->transactionManager()->purge($this->name, $this->id);
  }

  /**
   * Prevent transactions from being unserialized.
   */
  public function __wakeup(): void {
    throw new \BadMethodCallException('Cannot unserialize ' . get_class($this));
  }

  /**
   * Retrieves the name of the transaction or savepoint.
   */