var_dump(__LINE__); // this is the last I see in output
try {
$pool->query('DROP TABLE IF EXISTS test');
var_dump(__LINE__); // this I don't see anymore
$transaction = $pool->beginTransaction();
var_dump(__LINE__);
$transaction->query('CREATE TABLE test (domain VARCHAR(63), tld VARCHAR(63), PRIMARY KEY (domain, tld))');
var_dump(__LINE__);
$statement = $transaction->prepare('INSERT INTO test VALUES (?, ?)');
var_dump(__LINE__);
$statement->execute(['amphp', 'org']);
$statement->execute(['google', 'com']);
$statement->execute(['github', 'com']);
} catch (Throwable $e) {
// we never see this
var_dump(get_class($e));
var_dump($e->getMessage());
var_dump($e->getTraceAsString());
}
More code around: