/PHP-5.3/ext/mysqli/tests/ |
H A D | mysqli_class_mysqli_properties_no_conn.phpt | 37 @$mysqli->client_info, gettype(@$mysqli->client_info), 45 assert(@mysqli_errno($mysqli) === @$mysqli->errno); 47 @$mysqli->errno, gettype(@$mysqli->errno), 51 assert(@mysqli_error($mysqli) === @$mysqli->error); 53 @$mysqli->error, gettype(@$mysqli->error), 63 @$mysqli->insert_id, gettype(@$mysqli->insert_id), 68 @$mysqli->sqlstate, gettype(@$mysqli->sqlstate), 71 assert(@mysqli_stat($mysqli) === @$mysqli->sstat); 73 @$mysqli->stat, gettype(@$mysqli->stat), 82 assert(@mysqli_info($mysqli) == @$mysqli->info); [all …]
|
H A D | mysqli_connect_oo_defaults.phpt | 2 new mysqli() 35 printf("[001] [%d] %s\n", $mysqli->errno, $mysqli->error); 44 $mysqli->close(); 58 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error); 62 $mysqli->close(); 76 printf("[005] [%d] %s\n", $mysqli->errno, $mysqli->error); 80 $mysqli->close(); 94 printf("[007] [%d] %s\n", $mysqli->errno, $mysqli->error); 98 $mysqli->close(); 112 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error); [all …]
|
H A D | mysqli_connect_oo.phpt | 2 new mysqli() 22 if (false !== $mysqli) 30 $mysqli->close(); 37 $mysqli->close(); 44 $mysqli->close(); 51 $mysqli->close(); 70 if (!is_object($mysqli = new mysqli())) { 100 $mysqli = new mysqli($host, $user, $passwd, $db, $port); 109 $mysqli = new mysqli($host, $user, $passwd, $db); 118 $mysqli = new mysqli($host, $user); [all …]
|
H A D | mysqli_class_mysqli_interface.phpt | 13 $mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket); 176 $mysqli->client_info, gettype($mysqli->client_info), 186 $mysqli->errno, gettype($mysqli->errno), 191 $mysqli->error, gettype($mysqli->error), 201 $mysqli->field_count, gettype($mysqli->field_count), 206 $mysqli->insert_id, gettype($mysqli->insert_id), 211 $mysqli->sqlstate, gettype($mysqli->sqlstate), 216 $mysqli->stat, gettype($mysqli->stat), 221 $mysqli->host_info, gettype($mysqli->host_info), 227 $mysqli->info, gettype($mysqli->info), [all …]
|
H A D | mysqli_affected_rows_oo.phpt | 2 mysqli->affected_rows 13 $mysqli = new mysqli(); 26 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error); 29 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error); 32 printf("[005] [%d] %s\n", $mysqli->errno, $mysqli->error); 43 printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error); 49 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error); 55 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error); 62 printf("[014] [%d] %s\n", $mysqli->errno, $mysqli->error); 68 printf("[015] [%d] %s\n", $mysqli->errno, $mysqli->error); [all …]
|
H A D | mysqli_autocommit_oo.phpt | 2 mysqli->autocommit() 32 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error); 35 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error); 46 printf("[007] [%d] %s\n", $mysqli->errno, $mysqli->error); 53 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error); 60 printf("[011] [%d] %s\n", $mysqli->errno, $mysqli->error); 63 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error); 66 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error); 70 $tmp['num'], $mysqli->errno, $mysqli->error); 75 printf("[015] [%d] %s\n", $mysqli->errno, $mysqli->error); [all …]
|
H A D | mysqli_fetch_array_oo.phpt | 2 mysqli->fetch_array() 22 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error); 43 printf("[010] Cannot run query, [%d] %s\n", $mysqli->errno, $$mysqli->error); 51 $mysqli->errno, $$mysqli->error); 62 gettype($tmp), $tmp, $mysqli->errno, $mysqli->error); 67 gettype($tmp), $tmp, $mysqli->errno, $mysqli->error); 74 printf("[%04d] [%d] %s\n", $offset, $mysqli->errno, $mysqli->error); 85 printf("[%04d] [%d] %s\n", $offset + 1, $mysqli->errno, $mysqli->error); 103 printf("[%04d] [%d] %s\n", $offset + 2, $mysqli->errno, $mysqli->error); 108 printf("[%04d] [%d] %s\n", $offset + 3, $mysqli->errno, $mysqli->error); [all …]
|
H A D | mysqli_commit_oo.phpt | 23 $mysqli = new mysqli(); 33 gettype($tmp), $tmp, $mysqli->errno, $mysqli->error); 42 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error); 45 printf("[005] Cannot create test table, [%d] %s\n", $mysqli->errno, $mysqli->error); 48 printf("[006] [%d] %s\n", $mysqli->errno, $mysqli->error); 50 $tmp = $mysqli->commit(); 54 if (!$mysqli->query('ROLLBACK')) 55 printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error); 58 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error); 65 printf("[011] [%d] %s\n", $mysqli->errno, $mysqli->error); [all …]
|
H A D | mysqli_connect_oo_warnings.phpt | 2 new mysqli() 21 if (!is_object($mysqli = new mysqli($myhost)) || ('mysqli' !== get_class($mysqli))) 22 …01] Expecting NULL, got %s/%s\n", gettype($mysqli), (is_object($mysqli)) ? var_export($mysqli, tru… 25 if (!is_object($mysqli = @new mysqli($myhost)) || ('mysqli' !== get_class($mysqli))) 26 …02] Expecting NULL, got %s/%s\n", gettype($mysqli), (is_object($mysqli)) ? var_export($mysqli, tru… 47 Warning: mysqli::mysqli(): (HY000/200%d): %s
|
H A D | mysqli_error_oo.phpt | 2 $mysqli->error 16 $mysqli = new mysqli(); 17 if ('' !== ($tmp = @$mysqli->error)) 20 if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket)) 24 $tmp = $mysqli->error; 26 …xpecting string/empty, got %s/%s. [%d] %s\n", gettype($tmp), $tmp, $mysqli->errno, $mysqli->error); 29 printf("[004] Failed to drop old test table: [%d] %s\n", $mysqli->errno, $mysqli->error); 32 $mysqli->query('SELECT * FROM test'); 33 $tmp = $mysqli->error; 37 $mysqli->close(); [all …]
|
H A D | mysqli_errno_oo.phpt | 2 $mysqli->errno 16 $mysqli = new mysqli(); 17 if (0 !== ($tmp = @$mysqli->errno)) 20 if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket)) 24 var_dump($mysqli->errno); 27 printf("[003] Failed to drop old test table: [%d] %s\n", $mysqli->errno, $mysqli->error); 31 var_dump($mysqli->errno); 33 @$mysqli->query('No SQL'); 34 if (($tmp = $mysqli->errno) === 0) 37 $mysqli->close(); [all …]
|
H A D | mysqli_phpinfo.phpt | 2 phpinfo() mysqli section 20 if (!stristr($phpinfo, "mysqli support")) 26 if (!stristr($phpinfo, "mysqli.default_host")) 29 if (!stristr($phpinfo, "mysqli.default_port")) 32 if (!stristr($phpinfo, "mysqli.default_pw")) 35 if (!stristr($phpinfo, "mysqli.default_socket")) 38 if (!stristr($phpinfo, "mysqli.default_user")) 41 if (!stristr($phpinfo, "mysqli.max_links")) 44 if (!stristr($phpinfo, "mysqli.reconnect")) 61 'mysqli.allow_local_infile', [all …]
|
H A D | mysqli_dump_debug_info_oo.phpt | 16 if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket)) 19 if (NULL !== ($tmp = @$mysqli->dump_debug_info($link))) 22 if (!is_bool($tmp = $mysqli->dump_debug_info())) 25 $mysqli->errno, $mysqli->error); 27 $mysqli->close(); 29 if (NULL !== ($tmp = $mysqli->dump_debug_info())) 32 $mysqli->errno, $mysqli->error); 37 Warning: mysqli::dump_debug_info(): Couldn't fetch mysqli in %s on line %d
|
H A D | mysqli_change_user_oo.phpt | 2 mysqli->change_user() 25 if (!is_null($tmp = @$mysqli->change_user())) 28 if (!is_null($tmp = @$mysqli->change_user($link))) 31 if (!is_null($tmp = @$mysqli->change_user($link, $link))) 46 if (!$mysqli->query('SET @mysqli_change_user_test_var=1')) 47 printf("[009] Failed to set test variable: [%d] %s\n", $mysqli->errno, $mysqli->error); 50 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error); 56 if (true !== ($tmp = $mysqli->change_user($user, $passwd, $db))) 60 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error); 70 printf("[016] [%d] %s\n", $mysqli->errno, $mysqli->error); [all …]
|
H A D | bug42548.phpt | 19 $mysqli = mysqli_init(); 20 $mysqli->real_connect($host, $user, $passwd, $db, $port, $socket); 26 $mysqli->query("DROP PROCEDURE IF EXISTS p1") or die($mysqli->error); 27 $mysqli->query("CREATE PROCEDURE p1() BEGIN SELECT 23; SELECT 42; END") or die($mysqli->error); 29 if ($mysqli->multi_query("CALL p1();")) 33 if ($objResult = $mysqli->store_result()) { 38 if ($mysqli->more_results()) { 44 } while ($mysqli->more_results() && $mysqli->next_result()); 46 print $mysqli->error; 49 $mysqli->query("DROP PROCEDURE p1") or die($mysqli->error); [all …]
|
H A D | bug36949.phpt | 2 Bug #36949 (invalid internal mysqli objects dtor) 13 private $mysqli; 17 $this->mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket); 18 $result = $this->mysqli->query("SELECT NOW() AS my_time FROM DUAL"); 25 $this->mysqli->close(); 31 private $mysqli; 35 $this->mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket); 36 $result = $this->mysqli->query("SELECT NOW() AS my_time FROM DUAL"); 43 $this->mysqli->close();
|
H A D | mysqli_connect.phpt | 70 ini_set('mysqli.default_socket', $socket); 81 ini_set('mysqli.default_port', $port); 92 ini_set('mysqli.default_pw', $passwd); 103 ini_set('mysqli.default_user', $user); 114 ini_set('mysqli.default_host', $host); 142 ini_set('mysqli.default_host', 'p:'); 159 %unicode|string%(19) "mysqli.default_port" 163 %unicode|string%(17) "mysqli.default_pw" 167 %unicode|string%(19) "mysqli.default_user" 169 %unicode|string%(19) "mysqli.default_user" [all …]
|
H A D | mysqli_fetch_object_oo.phpt | 16 $mysqli = new mysqli(); 17 $res = @new mysqli_result($mysqli); 22 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket)) 27 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error); 41 printf("[007] Object seems wrong. [%d] %s\n", $mysqli->errno, $mysqli->error); 57 printf("[008] Object seems wrong. [%d] %s\n", $mysqli->errno, $mysqli->error); 73 printf("[009] Object seems wrong. [%d] %s\n", $mysqli->errno, $mysqli->error); 79 printf("[010] Object seems wrong. [%d] %s\n", $mysqli->errno, $mysqli->error); 85 printf("[011] Object seems wrong. [%d] %s\n", $mysqli->errno, $mysqli->error); 95 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error); [all …]
|
H A D | mysqli_character_set_name_oo.phpt | 17 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket)) 21 if (!is_null($tmp = @$mysqli->character_set_name($link))) 24 if (!$res = $mysqli->query('SELECT version() AS server_version')) 25 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error); 35 …if (!$res = $mysqli->query('SELECT @@character_set_connection AS charset, @@collation_connection A… 36 printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error); 42 $charset = $mysqli->character_set_name(); 52 $charset2 = $mysqli->character_set_name(); 58 $mysqli->close(); 60 if (NULL !== ($tmp = @$mysqli->character_set_name())) [all …]
|
H A D | mysqli_max_links.phpt | 2 Testing mysqli.max_links 10 mysqli.max_links=1 19 var_dump((int)ini_get('mysqli.max_links')); 57 Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in %s on line %d 59 Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in %s on line %d 61 Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in %s on line %d 63 Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in %s on line %d 65 Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in %s on line %d 67 Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in %s on line %d 69 Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in %s on line %d [all …]
|
H A D | 074.phpt | 13 $mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket); 15 var_dump($mysqli->autocommit(false)); 16 $result = $mysqli->query("SELECT @@autocommit"); 19 var_dump($mysqli->autocommit(true)); 20 $result = $mysqli->query("SELECT @@autocommit");
|
H A D | bug46109.phpt | 12 $mysqli = new mysqli(); 13 $mysqli->init(); 14 $mysqli->init();
|
H A D | mysqli_constants_categories.phpt | 2 Constants exported by ext/mysqli - checking category - PHP bug not mysqli bug (check from time to t… 14 if (stristr($name, 'mysqli')) { 15 if ('mysqli' != $group) 16 printf("found constant '%s' in group '%s'. expecting group 'mysqli'\n", $name, $group);
|
H A D | mysqli_fetch_assoc_oo.phpt | 17 $mysqli = new mysqli(); 18 $res = @new mysqli_result($mysqli); 23 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket)) 30 if (!$res = $mysqli->query("SELECT id, label FROM test ORDER BY id LIMIT 1")) { 31 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error); 42 if (!$res = $mysqli->query("SELECT 1 AS a, 2 AS a, 3 AS c, 4 AS C, NULL AS d, true AS e")) { 43 printf("[007] Cannot run query, [%d] %s\n", $mysqli->errno, $mysqli->error);
|
/PHP-5.3/ext/mysqli/ |
H A D | config.w32 | 4 // Note: The extension name is "mysqli", you enable it with "--with-mysqli". 9 ARG_WITH("mysqli", "MySQLi support", "no"); 13 "mysqli.c " + 25 EXTENSION("mysqli", mysqli_source); 28 ADD_EXTENSION_DEP('mysqli', 'mysqlnd', true); 30 PHP_INSTALL_HEADERS("ext/mysqli", "php_mysqli_structs.h"); 32 if (CHECK_LIB("libmysql.lib", "mysqli", PHP_MYSQLI) && 36 EXTENSION("mysqli", mysqli_source); 39 PHP_INSTALL_HEADERS("ext/mysqli", "php_mysqli_structs.h"); 41 WARNING("mysqli not enabled; libraries and headers not found");
|