/PHP-8.0/ext/mysqli/tests/ |
H A D | mysqli_class_mysqli_properties_no_conn.phpt | 2 Interface of the class mysqli 54 …printf("mysqli->client_version = '%s'/%s\n", $mysqli->client_version, gettype($mysqli->client_vers… 63 $mysqli->errno; 75 $mysqli->error; 135 $mysqli->info; 202 printf("mysqli->unknown = '%s'\n", @$mysqli->unknown); 214 @$mysqli->connect_error, gettype(@$mysqli->connect_error), 219 @$mysqli->connect_errno, gettype(@$mysqli->connect_errno), 224 $mysqli = @new mysqli($host, $user, $passwd . "invalid", $db, $port, $socket); 314 mysqli->unknown = '' [all …]
|
H A D | mysqli_connect_oo_defaults.phpt | 2 new mysqli() 33 if (!$res = $mysqli->query("SELECT 'mysqli.default_socket' AS testing")) 34 printf("[001] [%d] %s\n", $mysqli->errno, $mysqli->error); 56 if (!$res = $mysqli->query("SELECT 'mysqli.default_port' AS testing")) 57 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error); 74 if (!$res = $mysqli->query("SELECT 'mysqli.default_pw' AS testing")) 75 printf("[005] [%d] %s\n", $mysqli->errno, $mysqli->error); 92 if (!$res = $mysqli->query("SELECT 'mysqli.default_user' AS testing")) 93 printf("[007] [%d] %s\n", $mysqli->errno, $mysqli->error); 111 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error); [all …]
|
H A D | mysqli_autocommit_oo.phpt | 2 mysqli->autocommit() 31 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error); 34 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error); 45 printf("[007] [%d] %s\n", $mysqli->errno, $mysqli->error); 52 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error); 59 printf("[011] [%d] %s\n", $mysqli->errno, $mysqli->error); 62 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error); 65 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error); 69 $tmp['num'], $mysqli->errno, $mysqli->error); 74 printf("[015] [%d] %s\n", $mysqli->errno, $mysqli->error); [all …]
|
H A D | mysqli_class_mysqli_interface.phpt | 12 $mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket); 165 $mysqli->client_info, gettype($mysqli->client_info), 175 $mysqli->errno, gettype($mysqli->errno), 180 $mysqli->error, gettype($mysqli->error), 188 $mysqli->field_count, gettype($mysqli->field_count), 193 $mysqli->insert_id, gettype($mysqli->insert_id), 198 $mysqli->sqlstate, gettype($mysqli->sqlstate), 203 $mysqli->host_info, gettype($mysqli->host_info), 209 $mysqli->info, gettype($mysqli->info), 215 $mysqli->thread_id, gettype($mysqli->thread_id), [all …]
|
H A D | mysqli_fetch_array_oo.phpt | 2 mysqli->fetch_array() 21 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error); 42 printf("[010] Cannot run query, [%d] %s\n", $mysqli->errno, $$mysqli->error); 50 $mysqli->errno, $$mysqli->error); 75 printf("[%04d] [%d] %s\n", $offset, $mysqli->errno, $mysqli->error); 86 printf("[%04d] [%d] %s\n", $offset + 1, $mysqli->errno, $mysqli->error); 97 printf("[%04di] [%d] %s\n", $offset + 1, $mysqli->errno, $mysqli->error); 104 printf("[%04d] [%d] %s\n", $offset + 2, $mysqli->errno, $mysqli->error); 109 printf("[%04d] [%d] %s\n", $offset + 3, $mysqli->errno, $mysqli->error); 120 gettype($row['label']), $row['label'], $mysqli->errno, $mysqli->error); [all …]
|
H A D | mysqli_connect_oo.phpt | 2 new mysqli() 21 if (false !== $mysqli) 29 $mysqli->close(); 36 $mysqli->close(); 43 $mysqli->close(); 54 if (!is_object($mysqli = new mysqli()) || (0 !== mysqli_connect_errno())) { 70 if (!is_object($mysqli = new mysqli())) { 101 $mysqli = new mysqli($host, $user, $passwd, $db, $port); 110 $mysqli = new mysqli($host, $user, $passwd, $db); 119 $mysqli = new mysqli($host, $user); [all …]
|
H A D | mysqli_affected_rows_oo.phpt | 2 mysqli->affected_rows 12 $mysqli = new mysqli(); 28 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error); 31 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error); 34 printf("[005] [%d] %s\n", $mysqli->errno, $mysqli->error); 45 printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error); 51 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error); 57 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error); 64 printf("[014] [%d] %s\n", $mysqli->errno, $mysqli->error); 70 printf("[015] [%d] %s\n", $mysqli->errno, $mysqli->error); [all …]
|
H A D | mysqli_commit_oo.phpt | 22 $mysqli = new mysqli(); 24 $mysqli->commit(); 43 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error); 51 printf("[006] [%d] %s\n", $mysqli->errno, $mysqli->error); 60 printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error); 63 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error); 73 printf("[011] [%d] %s\n", $mysqli->errno, $mysqli->error); 77 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error); 87 printf("[016] [%d] %s\n", $mysqli->errno, $mysqli->error); 90 $mysqli->close(); [all …]
|
H A D | mysqli_phpinfo.phpt | 2 phpinfo() mysqli section 19 if (!stristr($phpinfo, "mysqli support")) 25 if (!stristr($phpinfo, "mysqli.default_host")) 28 if (!stristr($phpinfo, "mysqli.default_port")) 31 if (!stristr($phpinfo, "mysqli.default_pw")) 34 if (!stristr($phpinfo, "mysqli.default_socket")) 37 if (!stristr($phpinfo, "mysqli.default_user")) 40 if (!stristr($phpinfo, "mysqli.max_links")) 43 if (!stristr($phpinfo, "mysqli.reconnect")) 49 'mysqli.allow_local_infile', [all …]
|
H A D | mysqli_error_oo.phpt | 2 $mysqli->error 15 $mysqli = new mysqli(); 16 if ('' !== ($tmp = @$mysqli->error)) 19 if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket)) 23 $tmp = $mysqli->error; 28 printf("[004] Failed to drop old test table: [%d] %s\n", $mysqli->errno, $mysqli->error); 31 $mysqli->query('SELECT * FROM test'); 32 $tmp = $mysqli->error; 36 $mysqli->close(); 39 $mysqli->error; [all …]
|
H A D | mysqli_errno_oo.phpt | 2 $mysqli->errno 15 $mysqli = new mysqli(); 16 if (0 !== ($tmp = @$mysqli->errno)) 19 if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket)) 23 var_dump($mysqli->errno); 26 printf("[003] Failed to drop old test table: [%d] %s\n", $mysqli->errno, $mysqli->error); 30 var_dump($mysqli->errno); 32 @$mysqli->query('No SQL'); 36 $mysqli->close(); 39 $mysqli->errno; [all …]
|
H A D | mysqli_connect_oo_warnings.phpt | 2 new mysqli() 20 if (!is_object($mysqli = new mysqli($myhost)) || ('mysqli' !== get_class($mysqli))) 21 …01] Expecting NULL, got %s/%s\n", gettype($mysqli), (is_object($mysqli)) ? var_export($mysqli, tru… 24 if (!is_object($mysqli = @new mysqli($myhost)) || ('mysqli' !== get_class($mysqli))) 25 …02] Expecting NULL, got %s/%s\n", gettype($mysqli), (is_object($mysqli)) ? var_export($mysqli, tru… 46 Warning: mysqli::__construct(): (HY000/200%d): %s
|
H A D | bug79375.phpt | 21 function testStmtStoreResult(mysqli $mysqli, string $name) { 26 $stmt = $mysqli->prepare($query); 35 function testStmtGetResult(mysqli $mysqli, string $name) { 49 function testNormalQuery(mysqli $mysqli, string $name) { 61 function testStmtUseResult(mysqli $mysqli, string $name) { 76 function testResultFetchRow(mysqli $mysqli, string $name) { 94 $mysqli->close(); 105 $mysqli->close(); 116 $mysqli->close(); 127 $mysqli->close(); [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 | bug32490.phpt | 2 Bug #32490 (constructor of mysqli has wrong name) 4 <?php if (!extension_loaded("mysqli")) die("skip mysqli not available"); ?> 7 var_dump(method_exists("mysqli", "mysqli")); 8 var_dump(method_exists("mysqli", "__construct"));
|
H A D | mysqli_real_connect_compression_error.phpt | 25 $mysqli = mysqli_init(); 26 $result = my_mysqli_real_connect($mysqli, $host, $user, $passwd, $db, $port, $socket); 27 $mysqli->query("DROP TABLE IF EXISTS test"); 28 $mysqli->query("CREATE TABLE test (`blob` LONGBLOB NOT NULL) ENGINE=MyISAM"); 31 $mysqli->query("INSERT INTO $db.test(`blob`) VALUE ('$data')"); 33 var_dump(mysqli_error_list($mysqli)); 34 $mysqli->close(); 38 $mysqli = mysqli_init(); 42 $mysqli->query("INSERT INTO $db.test(`blob`) VALUE ('$data')"); 44 var_dump(mysqli_error_list($mysqli)); [all …]
|
H A D | mysqli_change_user_oo.phpt | 2 mysqli->change_user() 23 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket)) 37 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket)) 41 if (!$mysqli->query('SET @mysqli_change_user_test_var=1')) 42 printf("[009] Failed to set test variable: [%d] %s\n", $mysqli->errno, $mysqli->error); 45 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error); 51 if (true !== ($tmp = $mysqli->change_user($user, $passwd, $db))) 55 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error); 65 printf("[016] [%d] %s\n", $mysqli->errno, $mysqli->error); 71 $mysqli->close(); [all …]
|
H A D | gh8267.phpt | 12 $mysqli = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 13 $mysqli->query("DROP TABLE IF EXISTS foo"); 14 $mysqli->query("CREATE TABLE foo (id BIGINT UNSIGNED AUTO_INCREMENT, PRIMARY KEY (id))"); 15 $mysqli->query("INSERT INTO foo VALUES (9223372036854775807)"); 16 var_dump($mysqli->insert_id); 17 $mysqli->query("INSERT INTO foo VALUES (0)"); 18 var_dump($mysqli->insert_id);
|
H A D | mysqli_dump_debug_info_oo.phpt | 15 if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket)) 18 if (!is_bool($tmp = $mysqli->dump_debug_info())) 21 $mysqli->errno, $mysqli->error); 23 $mysqli->close(); 26 $mysqli->dump_debug_info(); 34 mysqli object is already closed
|
H A D | mysqli_incomplete_initialization.phpt | 10 $mysqli = new mysqli(); 11 @$mysqli->__construct('doesnotexist'); 12 $mysqli->close(); 16 Fatal error: Uncaught Error: mysqli object is not fully initialized in %s:%d 18 #0 %s(%d): mysqli->close()
|
H A D | mysqli_next_result_error.phpt | 15 $mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket); 17 $mysqli->multi_query("SELECT 1; SELECT 2; Syntax Error"); 21 if ($res = $mysqli->store_result()) { 25 } while ($mysqli->more_results() && $mysqli->next_result()); 30 $mysqli->query("DROP PROCEDURE IF EXISTS p"); 31 $mysqli->query('CREATE PROCEDURE p() READS SQL DATA BEGIN SELECT 1; SELECT foobar FROM table_that_d… 33 $stmt = $mysqli->prepare("CALL p()"); 47 $mysqli->query("DROP PROCEDURE IF EXISTS p");
|
H A D | gh9841.phpt | 15 $mysqli = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 17 $mysqli->query("SELECT ( 23 $mysqli->query("SELECT ( 28 $mysqli->reap_async_query(); 30 $mysqli->real_query("SELECT ( 35 $result = new mysqli_result($mysqli); 41 $mysqli->query("SELECT ( 50 $mysqli->query("SELECT ( 56 $mysqli->reap_async_query(); 61 $mysqli->real_query("SELECT ( [all …]
|
H A D | mysqli_reap_async_query.phpt | 10 die("skip mysqlnd only feature, compile PHP using --with-mysqli=mysqlnd"); 34 foreach ($links as $mysqli) { 36 $res = $mysqli->reap_async_query(); 38 $res = mysqli_reap_async_query($mysqli); 42 } else if (mysqli_errno($mysqli) > 0) { 44 $offset, mysqli_errno($mysqli), mysqli_error($mysqli)); 50 foreach ($errors as $mysqli) 52 $offset, mysqli_thread_id($mysqli), mysqli_errno($mysqli), mysqli_error($mysqli)); 54 foreach ($reject as $mysqli) 56 $offset, mysqli_thread_id($mysqli), mysqli_errno($mysqli), mysqli_error($mysqli));
|
/PHP-8.0/ext/mysqli/ |
H A D | mysqli.stub.php | 9 class mysqli class 534 function mysqli_close(mysqli $mysql): bool {} 545 ): mysqli|false {} 557 function mysqli_errno(mysqli $mysql): int {} 559 function mysqli_error(mysqli $mysql): string {} 620 function mysqli_init(): mysqli|false {} 622 function mysqli_info(mysqli $mysql): ?string {} 647 function mysqli_ping(mysqli $mysql): bool {} 660 mysqli $mysql, 752 mysqli $mysql, [all …]
|
H A D | config.w32 | 3 // Note: The extension name is "mysqli", you enable it with "--with-mysqli". 8 ARG_WITH("mysqli", "MySQLi support", "no"); 12 "mysqli.c " + 23 EXTENSION("mysqli", mysqli_source, PHP_MYSQLI_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"); 26 ADD_EXTENSION_DEP('mysqli', 'mysqlnd', true); 28 PHP_INSTALL_HEADERS("ext/mysqli", "php_mysqli_structs.h"); 30 if (CHECK_LIB("libmysql.lib", "mysqli", PHP_MYSQLI) && 34 EXTENSION("mysqli", mysqli_source, PHP_MYSQLI_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"); 37 PHP_INSTALL_HEADERS("ext/mysqli", "php_mysqli_structs.h"); 39 WARNING("mysqli not enabled; libraries and headers not found");
|