4 <?php include "_skipif.inc"; ?>
11 $c = new pq\Connection(PQ_DSN);
13 $x = new pq\Cancel($c);
15 $c->execAsync("SELECT pg_sleep(2)");
19 var_dump($c === $x->connection);
20 var_dump($c->getResult());
21 printf("%s\n", $c->errorMessage);
27 object(pq\Result)#%d (9) {
31 string(11) "FATAL_ERROR"
33 string(47) "ERROR: canceling statement due to user request"
41 string(39) "canceling statement due to user request"
46 ["statement_position"]=>
48 ["internal_position"]=>
65 string(10) "postgres.c"
69 string(17) "ProcessInterrupts"
82 ERROR: canceling statement due to user request