Lines Matching refs:notify
32 $notify = $db->pgsqlGetNotify();
33 var_dump(count($notify));
34 var_dump($notify[0]);
35 var_dump($notify[1] == $pid);
40 $notify = $db->pgsqlGetNotify();
41 var_dump(count($notify));
42 var_dump($notify['message']);
43 var_dump($notify['pid'] == $pid);
47 $notify = $db->pgsqlGetNotify(PDO::FETCH_NUM);
48 var_dump(count($notify));
49 var_dump($notify[0]);
50 var_dump($notify[1] == $pid);
54 $notify = $db->pgsqlGetNotify(PDO::FETCH_ASSOC);
55 var_dump(count($notify));
56 var_dump($notify['message']);
57 var_dump($notify['pid'] == $pid);
61 $notify = $db->pgsqlGetNotify(PDO::FETCH_BOTH);
62 var_dump(count($notify));
63 var_dump($notify['message']);
64 var_dump($notify['pid'] == $pid);
65 var_dump($notify[0]);
66 var_dump($notify[1] == $pid);
72 // Test second parameter, should wait 2 seconds because no notify is queued
74 $notify = $db->pgsqlGetNotify(PDO::FETCH_ASSOC, 1000);
77 var_dump($notify);
79 // Test second parameter, should return immediately because a notify is queued
82 $notify = $db->pgsqlGetNotify(PDO::FETCH_ASSOC, 5000);
85 var_dump(count($notify));