Lines Matching refs:notify
31 $notify = $db->pgsqlGetNotify();
32 var_dump(count($notify));
33 var_dump($notify[0]);
34 var_dump($notify[1] == $pid);
39 $notify = $db->pgsqlGetNotify();
40 var_dump(count($notify));
41 var_dump($notify['message']);
42 var_dump($notify['pid'] == $pid);
46 $notify = $db->pgsqlGetNotify(PDO::FETCH_NUM);
47 var_dump(count($notify));
48 var_dump($notify[0]);
49 var_dump($notify[1] == $pid);
53 $notify = $db->pgsqlGetNotify(PDO::FETCH_ASSOC);
54 var_dump(count($notify));
55 var_dump($notify['message']);
56 var_dump($notify['pid'] == $pid);
60 $notify = $db->pgsqlGetNotify(PDO::FETCH_BOTH);
61 var_dump(count($notify));
62 var_dump($notify['message']);
63 var_dump($notify['pid'] == $pid);
64 var_dump($notify[0]);
65 var_dump($notify[1] == $pid);
71 // Test second parameter, should wait 2 seconds because no notify is queued
73 $notify = $db->pgsqlGetNotify(PDO::FETCH_ASSOC, 1000);
76 var_dump($notify);
78 // Test second parameter, should return immediately because a notify is queued
81 $notify = $db->pgsqlGetNotify(PDO::FETCH_ASSOC, 5000);
84 var_dump(count($notify));