Lines Matching refs:notify
30 $notify = $db->pgsqlGetNotify();
31 var_dump(count($notify));
32 var_dump($notify[0]);
33 var_dump($notify[1] == $pid);
38 $notify = $db->pgsqlGetNotify();
39 var_dump(count($notify));
40 var_dump($notify['message']);
41 var_dump($notify['pid'] == $pid);
45 $notify = $db->pgsqlGetNotify(PDO::FETCH_NUM);
46 var_dump(count($notify));
47 var_dump($notify[0]);
48 var_dump($notify[1] == $pid);
52 $notify = $db->pgsqlGetNotify(PDO::FETCH_ASSOC);
53 var_dump(count($notify));
54 var_dump($notify['message']);
55 var_dump($notify['pid'] == $pid);
59 $notify = $db->pgsqlGetNotify(PDO::FETCH_BOTH);
60 var_dump(count($notify));
61 var_dump($notify['message']);
62 var_dump($notify['pid'] == $pid);
63 var_dump($notify[0]);
64 var_dump($notify[1] == $pid);
70 // Test second parameter, should wait 2 seconds because no notify is queued
72 $notify = $db->pgsqlGetNotify(PDO::FETCH_ASSOC, 1000);
75 var_dump($notify);
77 // Test second parameter, should return immediately because a notify is queued
80 $notify = $db->pgsqlGetNotify(PDO::FETCH_ASSOC, 5000);
83 var_dump(count($notify));