--- /dev/null
+--TEST--
+crash txn reverse dependency from connection
+--SKIPIF--
+<?php
+include "_skipif.inc";
+?>
+--FILE--
+<?php
+echo "Test\n";
+
+include "_setup.inc";
+
+$c = new pq\Connection(PQ_DSN);
+$c->t = $c->startTransaction();
+
+?>
+===DONE===
+--EXPECT--
+Test
+===DONE===
--- /dev/null
+--TEST--
+crash txn reverse dependency from connection
+--SKIPIF--
+<?php
+include "_skipif.inc";
+?>
+--FILE--
+<?php
+echo "Test\n";
+
+include "_setup.inc";
+
+$c = new pq\Connection(PQ_DSN);
+$c->c = $c->declare("test", "SELECT 1");
+
+?>
+===DONE===
+--EXPECT--
+Test
+===DONE===