/php-src/ext/mysqli/tests/ |
H A D | mysqli_class_mysqli_properties_no_conn.phpt | 2 Interface of the class mysqli 4 mysqli 49 … printf("mysqli->client_info = '%s'/%s\n", $mysqli->client_info, gettype($mysqli->client_info)); 51 …printf("mysqli->client_version = '%s'/%s\n", $mysqli->client_version, gettype($mysqli->client_vers… 60 $mysqli->errno; 72 $mysqli->error; 199 printf("mysqli->unknown = '%s'\n", @$mysqli->unknown); 211 @$mysqli->connect_error, gettype(@$mysqli->connect_error), 216 @$mysqli->connect_errno, gettype(@$mysqli->connect_errno), 293 mysqli->unknown = '' [all …]
|
H A D | mysqli_connect_oo_defaults.phpt | 2 new mysqli() 4 mysqli 32 printf("[001] [%d] %s\n", $mysqli->errno, $mysqli->error); 54 if (!$res = $mysqli->query("SELECT 'mysqli.default_port' AS testing")) 55 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error); 72 if (!$res = $mysqli->query("SELECT 'mysqli.default_pw' AS testing")) 73 printf("[005] [%d] %s\n", $mysqli->errno, $mysqli->error); 90 if (!$res = $mysqli->query("SELECT 'mysqli.default_user' AS testing")) 91 printf("[007] [%d] %s\n", $mysqli->errno, $mysqli->error); 109 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error); [all …]
|
H A D | mysqli_connect_oo.phpt | 2 new mysqli() 4 mysqli 22 $mysqli = new mysqli($host, $user, $passwd, $db, $port); 30 $mysqli = new mysqli($host, $user, $passwd, $db); 38 $mysqli = new mysqli($host, $user); 46 $mysqli = new mysqli($host); 54 $mysqli = new mysqli(); 70 $mysqli = new mysqli(); 105 $mysqli = new mysqli($host, $user, $passwd, $db); 114 $mysqli = new mysqli($host, $user); [all …]
|
H A D | mysqli_autocommit_oo.phpt | 2 mysqli->autocommit() 4 mysqli 26 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error); 29 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error); 40 printf("[007] [%d] %s\n", $mysqli->errno, $mysqli->error); 47 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error); 54 printf("[011] [%d] %s\n", $mysqli->errno, $mysqli->error); 57 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error); 60 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error); 64 $tmp['num'], $mysqli->errno, $mysqli->error); [all …]
|
H A D | mysqli_class_mysqli_interface.phpt | 4 mysqli 13 $mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket); 164 $mysqli->client_info, gettype($mysqli->client_info), 174 $mysqli->errno, gettype($mysqli->errno), 179 $mysqli->error, gettype($mysqli->error), 192 $mysqli->insert_id, gettype($mysqli->insert_id), 197 $mysqli->sqlstate, gettype($mysqli->sqlstate), 202 $mysqli->host_info, gettype($mysqli->host_info), 208 $mysqli->info, gettype($mysqli->info), 214 $mysqli->thread_id, gettype($mysqli->thread_id), [all …]
|
H A D | mysqli_affected_rows_oo.phpt | 2 mysqli->affected_rows 4 mysqli 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); [all …]
|
H A D | mysqli_fetch_array_oo.phpt | 2 mysqli->fetch_array() 4 mysqli 12 $mysqli = $link; 15 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error); 36 printf("[010] Cannot run query, [%d] %s\n", $mysqli->errno, $$mysqli->error); 44 $mysqli->errno, $$mysqli->error); 69 printf("[%04d] [%d] %s\n", $offset, $mysqli->errno, $mysqli->error); 98 printf("[%04d] [%d] %s\n", $offset + 2, $mysqli->errno, $mysqli->error); 103 printf("[%04d] [%d] %s\n", $offset + 3, $mysqli->errno, $mysqli->error); 112 gettype($row['label']), $row['label'], $mysqli->errno, $mysqli->error); [all …]
|
H A D | mysqli_commit_oo.phpt | 4 mysqli 18 $mysqli = new mysqli(); 20 $mysqli->commit(); 36 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error); 44 printf("[006] [%d] %s\n", $mysqli->errno, $mysqli->error); 53 printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error); 56 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error); 66 printf("[011] [%d] %s\n", $mysqli->errno, $mysqli->error); 70 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error); 80 printf("[016] [%d] %s\n", $mysqli->errno, $mysqli->error); [all …]
|
H A D | mysqli_phpinfo.phpt | 2 phpinfo() mysqli section 4 mysqli 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")) 46 'mysqli.allow_local_infile', 'mysqli.local_infile_directory', [all …]
|
H A D | mysqli_error_oo.phpt | 2 $mysqli->error 4 mysqli 13 $mysqli = new mysqli(); 14 if ('' !== ($tmp = @$mysqli->error)) 17 if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket)) 21 $tmp = $mysqli->error; 26 printf("[004] Failed to drop old test table: [%d] %s\n", $mysqli->errno, $mysqli->error); 30 $tmp = $mysqli->error; 34 $mysqli->close(); 37 $mysqli->error; [all …]
|
H A D | mysqli_errno_oo.phpt | 2 $mysqli->errno 4 mysqli 13 $mysqli = new mysqli(); 17 if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket)) 21 var_dump($mysqli->errno); 24 printf("[003] Failed to drop old test table: [%d] %s\n", $mysqli->errno, $mysqli->error); 28 var_dump($mysqli->errno); 30 @$mysqli->query('No SQL'); 34 $mysqli->close(); 37 $mysqli->errno; [all …]
|
H A D | bug79375.phpt | 4 mysqli 22 function testStmtStoreResult(mysqli $mysqli, string $name) { 36 function testStmtGetResult(mysqli $mysqli, string $name) { 50 function testNormalQuery(mysqli $mysqli, string $name) { 62 function testStmtUseResult(mysqli $mysqli, string $name) { 77 function testResultFetchRow(mysqli $mysqli, string $name) { 95 $mysqli->close(); 106 $mysqli->close(); 117 $mysqli->close(); 128 $mysqli->close(); [all …]
|
H A D | mysqli_change_user_oo.phpt | 2 mysqli->change_user() 4 mysqli 18 $mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket); 30 $mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket); 32 if (!$mysqli->query('SET @mysqli_change_user_test_var=1')) 33 printf("[009] Failed to set test variable: [%d] %s\n", $mysqli->errno, $mysqli->error); 36 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error); 42 if (true !== ($tmp = $mysqli->change_user($user, $passwd, $db))) 46 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error); 56 printf("[016] [%d] %s\n", $mysqli->errno, $mysqli->error); [all …]
|
H A D | bug42548.phpt | 4 mysqli 19 $mysqli = mysqli_init(); 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 | 062.phpt | 4 mysqli 13 $mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket); 15 $mysqli->real_query("SELECT 'foo' FROM DUAL"); 17 $myresult = new mysqli_result($mysqli); 21 $mysqli->close(); 26 new mysqli_result($mysqli); 31 $mysqli = new mysqli(); 33 new mysqli_result($mysqli); 45 mysqli object is not fully initialized
|
H A D | gh8267.phpt | 4 mysqli 13 $mysqli = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 14 $mysqli->query("DROP TABLE IF EXISTS foo"); 15 $mysqli->query("CREATE TABLE foo (id BIGINT UNSIGNED AUTO_INCREMENT, PRIMARY KEY (id))"); 16 $mysqli->query("INSERT INTO foo VALUES (9223372036854775807)"); 17 var_dump($mysqli->insert_id); 18 $mysqli->query("INSERT INTO foo VALUES (0)"); 19 var_dump($mysqli->insert_id); 20 $mysqli->query("DROP TABLE IF EXISTS foo");
|
H A D | mysqli_real_connect_compression_error.phpt | 4 mysqli 26 $mysqli = mysqli_init(); 27 my_mysqli_real_connect($mysqli, $host, $user, $passwd, $db, $port, $socket); 28 $mysqli->query("DROP TABLE IF EXISTS test"); 32 $mysqli->query("INSERT INTO $db.test(`blob`) VALUE ('$data')"); 34 var_dump(mysqli_error_list($mysqli)); 35 $mysqli->close(); 39 $mysqli = mysqli_init(); 43 $mysqli->query("INSERT INTO $db.test(`blob`) VALUE ('$data')"); 45 var_dump(mysqli_error_list($mysqli)); [all …]
|
H A D | mysqli_dump_debug_info_oo.phpt | 4 mysqli 13 if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket)) 16 if (!is_bool($tmp = $mysqli->dump_debug_info())) 19 $mysqli->errno, $mysqli->error); 21 $mysqli->close(); 24 $mysqli->dump_debug_info(); 32 mysqli object is already closed
|
H A D | mysqli_incomplete_initialization.phpt | 4 mysqli 9 $mysqli = new mysqli(); 10 @$mysqli->__construct('doesnotexist'); 11 $mysqli->close(); 15 Fatal error: Uncaught Error: mysqli object is not fully initialized in %s:%d 17 #0 %s(%d): mysqli->close()
|
H A D | mysqli_next_result_error.phpt | 4 mysqli 16 $mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket); 18 $mysqli->multi_query("SELECT 1; SELECT 2; Syntax Error"); 22 if ($res = $mysqli->store_result()) { 26 } while ($mysqli->more_results() && $mysqli->next_result()); 31 $mysqli->query("DROP PROCEDURE IF EXISTS p"); 32 $mysqli->query('CREATE PROCEDURE p() READS SQL DATA BEGIN SELECT 1; SELECT foobar FROM table_that_d… 34 $stmt = $mysqli->prepare("CALL p()"); 48 $mysqli->query("DROP PROCEDURE IF EXISTS p");
|
H A D | mysqli_reap_async_query.phpt | 4 mysqli 27 foreach ($links as $mysqli) { 29 $res = $mysqli->reap_async_query(); 31 $res = mysqli_reap_async_query($mysqli); 35 } else if (mysqli_errno($mysqli) > 0) { 37 $offset, mysqli_errno($mysqli), mysqli_error($mysqli)); 43 foreach ($errors as $mysqli) 45 $offset, mysqli_thread_id($mysqli), mysqli_errno($mysqli), mysqli_error($mysqli)); 47 foreach ($reject as $mysqli) 49 $offset, mysqli_thread_id($mysqli), mysqli_errno($mysqli), mysqli_error($mysqli));
|
H A D | gh9841.phpt | 4 mysqli 18 $mysqli->query("SELECT ( 24 $mysqli->query("SELECT ( 29 $mysqli->reap_async_query(); 31 $mysqli->real_query("SELECT ( 36 new mysqli_result($mysqli); 42 $mysqli->query("SELECT ( 51 $mysqli->query("SELECT ( 57 $mysqli->reap_async_query(); 62 $mysqli->real_query("SELECT ( [all …]
|
H A D | bug46109.phpt | 4 mysqli 13 $mysqli = new mysqli(); 14 $mysqli->init(); 15 $mysqli->init(); 19 Deprecated: Method mysqli::init() is deprecated since 8.1, replace calls to parent::init() with par… 21 Deprecated: Method mysqli::init() is deprecated since 8.1, replace calls to parent::init() with par…
|
/php-src/ext/mysqli/ |
H A D | config.w32 | 3 // Note: The extension name is "mysqli", you enable it with "--with-mysqli". 5 ARG_WITH("mysqli", "MySQLi support", "no"); 9 "mysqli.c " + 19 EXTENSION("mysqli", mysqli_source, PHP_MYSQLI_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"); 20 ADD_EXTENSION_DEP('mysqli', 'mysqlnd'); 21 ADD_EXTENSION_DEP('mysqli', 'spl'); 22 PHP_INSTALL_HEADERS("ext/mysqli", "php_mysqli_structs.h mysqli_mysqlnd.h");
|
H A D | mysqli.stub.php | 612 class mysqli class 1345 function mysqli_close(mysqli $mysql): true {} 1359 ): mysqli|false {} 1372 function mysqli_errno(mysqli $mysql): int {} 1375 function mysqli_error(mysqli $mysql): string {} 1485 function mysqli_init(): mysqli|false {} 1488 function mysqli_info(mysqli $mysql): ?string {} 1517 function mysqli_ping(mysqli $mysql): bool {} 1530 mysqli $mysql, 1633 mysqli $mysql, [all …]
|