Lines Matching refs:link
18 if (!$link = mysql_pconnect($host, $user, $passwd, true)) {
24 return $link;
28 $link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket);
29 $link1_thread_id = mysql_thread_id($link);
31 echo 'Expect same thread id for $link and default conn: ';
33 var_dump($link);
34 mysql_close($link);
35 var_dump($link);
37 // we sohuld have no default link anymore
40 echo "\nClosing default link\n";
41 $link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket);
42 $link2_thread_id = mysql_thread_id($link);
44 echo 'Expect same thread id for $link and default conn but not the previous: ';
46 var_dump($link);
48 var_dump($link);
49 mysql_close($link);
50 var_dump($link);
53 $link = my_mysql_pconnect($host, $user, $passwd, $db, $port, $socket);
54 var_dump($link);
55 mysql_close($link);
56 var_dump($link);
58 // we sohuld have no default link
61 echo "\nDefault link and pconnect\n";
62 $link = my_mysql_pconnect($host, $user, $passwd, $db, $port, $socket);
63 var_dump($link);
65 var_dump($link);
66 mysql_close($link);
67 var_dump($link);
73 Expect same thread id for $link and default conn: bool(true)
74 resource(%d) of type (mysql link)
79 Closing default link
82 Expect same thread id for $link and default conn but not the previous: bool(true)
83 resource(%d) of type (mysql link)
84 resource(%d) of type (mysql link)
90 resource(%d) of type (mysql link persistent)
95 Default link and pconnect
98 resource(%d) of type (mysql link persistent)
99 resource(%d) of type (mysql link persistent)