1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-11-26 20:04:44 +01:00
This commit is contained in:
Michael Wallner 2014-10-15 17:56:18 +02:00
parent a840b29b5f
commit 80ad126795
2 changed files with 1 additions and 85 deletions

View File

@ -22,7 +22,7 @@ $producer->notify("test", "this is an async test");
$r = array($consumer->socket);
$w = null; $e = null;
var_dump(stream_select($r, $w, $e, 0));
var_dump(stream_select($r, $w, $e, NULL));
$consumer->poll();
$producer->notify("other", "this should not show up");

View File

@ -10,7 +10,6 @@ include "_setup.inc";
$t = new pq\Transaction(new pq\Connection(PQ_DSN));
var_dump(
$t->connection,
$t->isolation,
$t->readonly,
$t->deferrable
@ -20,7 +19,6 @@ $t->isolation = pq\Transaction::SERIALIZABLE;
$t->readonly = true;
$t->deferrable = true;
var_dump(
$t->connection,
$t->isolation,
$t->readonly,
$t->deferrable
@ -29,91 +27,9 @@ var_dump(
DONE
--EXPECTF--
Test
object(pq\Connection)#%d (19) {
["status"]=>
int(0)
["transactionStatus"]=>
int(2)
["socket"]=>
resource(%d) of type (stream)
["errorMessage"]=>
string(0) ""
["busy"]=>
bool(false)
["encoding"]=>
string(4) "%s"
["unbuffered"]=>
bool(false)
["db"]=>
string(4) "%S"
["user"]=>
string(4) "%S"
["pass"]=>
string(0) "%S"
["host"]=>
string(0) "%S"
["port"]=>
string(4) "%S"
["options"]=>
string(0) "%S"
["eventHandlers"]=>
array(0) {
}
["defaultFetchType"]=>
int(0)
["defaultTransactionIsolation"]=>
int(0)
["defaultTransactionReadonly"]=>
bool(false)
["defaultTransactionDeferrable"]=>
bool(false)
["defaultAutoConvert"]=>
int(65535)
}
int(0)
bool(false)
bool(false)
object(pq\Connection)#%d (19) {
["status"]=>
int(0)
["transactionStatus"]=>
int(2)
["socket"]=>
resource(%d) of type (stream)
["errorMessage"]=>
string(0) ""
["busy"]=>
bool(false)
["encoding"]=>
string(4) "%s"
["unbuffered"]=>
bool(false)
["db"]=>
string(4) "%S"
["user"]=>
string(4) "%S"
["pass"]=>
string(0) "%S"
["host"]=>
string(0) "%S"
["port"]=>
string(4) "%S"
["options"]=>
string(0) "%S"
["eventHandlers"]=>
array(0) {
}
["defaultFetchType"]=>
int(0)
["defaultTransactionIsolation"]=>
int(0)
["defaultTransactionReadonly"]=>
bool(false)
["defaultTransactionDeferrable"]=>
bool(false)
["defaultAutoConvert"]=>
int(65535)
}
int(2)
bool(true)
bool(true)