Lines Matching refs:mysqli
2 new mysqli()
4 mysqli
18 …if ($mysqli = new mysqli($host, $user . 'unknown_really', $passwd . 'non_empty', $db, $port, $sock…
22 if (false !== $mysqli)
23 printf("[004] Expecting boolean/false, got %s/%s\n", gettype($mysqli), $mysqli);
26 ini_set('mysqli.default_socket', $socket);
27 $mysqli = new mysqli($host, $user, $passwd, $db, $port);
29 printf("[005] Usage of mysqli.default_socket failed\n") ;
31 $mysqli->close();
34 ini_set('mysqli.default_port', $port);
35 $mysqli = new mysqli($host, $user, $passwd, $db);
37 printf("[006] Usage of mysqli.default_port failed\n") ;
39 $mysqli->close();
42 ini_set('mysqli.default_pw', $passwd);
43 $mysqli = new mysqli($host, $user);
45 printf("[007] Usage of mysqli.default_pw failed\n") ;
47 $mysqli->close();
50 ini_set('mysqli.default_user', $user);
51 $mysqli = new mysqli($host);
53 printf("[008] Usage of mysqli.default_user failed\n") ;
55 $mysqli->close();
58 ini_set('mysqli.default_host', $host);
59 $mysqli = new mysqli();
61 printf("[012] Failed to create mysqli object\n");
63 … // There shall be NO connection! Using new mysqli(void) shall not use defaults for a connection!
64 // We had long discussions on this and found that the ext/mysqli API as
68 $mysqli->query('SELECT 1');
74 ini_set('mysqli.default_host', 'p:' . $host);
75 $mysqli = new mysqli();
76 // There shall be NO connection! Using new mysqli(void) shall not use defaults for a connection!
77 // We had long discussions on this and found that the ext/mysqli API as
81 $mysqli->query('SELECT 1');
91 … $mysqli = new mysqli($host, $user . 'unknown_really', $passwd . 'non_empty', $db, $port, $socket);
94 $mysqli->close();
99 ini_set('mysqli.default_socket', $socket);
101 $mysqli = new mysqli($host, $user, $passwd, $db, $port);
102 $mysqli->close();
105 printf("[017] Usage of mysqli.default_socket failed\n") ;
108 ini_set('mysqli.default_port', $port);
110 $mysqli = new mysqli($host, $user, $passwd, $db);
111 $mysqli->close();
114 printf("[018] Usage of mysqli.default_port failed\n") ;
117 ini_set('mysqli.default_pw', $passwd);
119 $mysqli = new mysqli($host, $user);
120 $mysqli->close();
123 printf("[019] Usage of mysqli.default_pw failed\n");
126 ini_set('mysqli.default_user', $user);
128 $mysqli = new mysqli($host);
129 $mysqli->close();
132 printf("[020] Usage of mysqli.default_user failed\n") ;
135 ini_set('mysqli.default_host', $host);
138 $mysqli = mysqli_init();
139 $mysqli->real_connect();
141 $mysqli->close();
145 printf("[021] Usage of mysqli.default_host failed\n");
151 Warning: mysqli::__construct(): (%s/%d): Access denied for user '%sunknown%s'@'%s' %r(\(using passw…
152 mysqli object is not fully initialized
153 mysqli object is not fully initialized