/PHP-8.0/ext/mysqlnd/ |
H A D | mysqlnd_ps.c | 80 if (!stmt || !conn || !stmt->result) { in MYSQLND_METHOD() 172 if (!stmt || !conn || !stmt->result) { in MYSQLND_METHOD() 252 if (!stmt || !conn || !stmt->result) { in MYSQLND_METHOD() 963 if (!stmt || !conn || !stmt->result) { in MYSQLND_METHOD() 1127 if (!stmt || !stmt->conn) { in MYSQLND_METHOD() 1633 return stmt && stmt->result? mysqlnd_num_rows(stmt->result):0; in MYSQLND_METHOD() 1663 return stmt? stmt->field_count : 0; in MYSQLND_METHOD() 1673 return stmt? stmt->param_count : 0; in MYSQLND_METHOD() 1713 return stmt && stmt->result? stmt->result->m.seek_data(stmt->result, row) : FAIL; in MYSQLND_METHOD() 1723 if (!stmt || !stmt->param_count) { in MYSQLND_METHOD() [all …]
|
H A D | mysqlnd.h | 166 #define mysqlnd_stmt_num_rows(stmt) (stmt)->m->get_num_rows((stmt)) argument 167 #define mysqlnd_stmt_param_count(stmt) (stmt)->m->get_param_count((stmt)) argument 171 #define mysqlnd_stmt_errno(stmt) (stmt)->m->get_error_no((stmt)) argument 172 #define mysqlnd_stmt_error(stmt) (stmt)->m->get_error_str((stmt)) argument 173 #define mysqlnd_stmt_sqlstate(stmt) (stmt)->m->get_sqlstate((stmt)) argument 221 #define mysqlnd_stmt_get_result(stmt) (stmt)->m->get_result((stmt)) argument 223 #define mysqlnd_stmt_next_result(stmt) (stmt)->m->next_result((stmt)) argument 226 #define mysqlnd_stmt_execute(stmt) (stmt)->m->execute((stmt)) argument 240 #define mysqlnd_stmt_free_result(stmt) (stmt)->m->free_result((stmt)) argument 242 #define mysqlnd_stmt_reset(stmt) (stmt)->m->reset((stmt)) argument [all …]
|
/PHP-8.0/ext/pdo_sqlite/ |
H A D | sqlite_statement.c | 34 if (S->stmt) { in pdo_sqlite_stmt_dtor() 36 S->stmt = NULL; in pdo_sqlite_stmt_dtor() 47 sqlite3_reset(S->stmt); in pdo_sqlite_stmt_execute() 54 php_pdo_stmt_set_column_count(stmt, sqlite3_data_count(S->stmt)); in pdo_sqlite_stmt_execute() 58 php_pdo_stmt_set_column_count(stmt, sqlite3_column_count(S->stmt)); in pdo_sqlite_stmt_execute() 60 sqlite3_reset(S->stmt); in pdo_sqlite_stmt_execute() 65 sqlite3_reset(S->stmt); in pdo_sqlite_stmt_execute() 206 if (!S->stmt) { in pdo_sqlite_stmt_fetch() 267 if (!S->stmt) { in pdo_sqlite_stmt_get_col() 299 if (!S->stmt) { in pdo_sqlite_stmt_col_meta() [all …]
|
/PHP-8.0/ext/mysqli/tests/ |
H A D | mysqli_class_mysqli_stmt_interface.phpt | 102 assert(mysqli_stmt_errno($stmt) === $stmt->errno); 103 printf("stmt->errno = '%s'\n", $stmt->errno); 105 assert(mysqli_stmt_error($stmt) === $stmt->error); 106 printf("stmt->error = '%s'\n", $stmt->error); 109 var_dump("stmt->error = ", $stmt->error_list); 115 printf("stmt->id = '%s'\n", $stmt->id); 118 printf("stmt->insert_id = '%s'\n", $stmt->insert_id); 121 printf("stmt->num_rows = '%s'\n", $stmt->num_rows); 127 printf("stmt->sqlstate = '%s'\n", $stmt->sqlstate); 130 printf("stmt->unknown = '%s'\n", @$stmt->unknown); [all …]
|
H A D | mysqli_stmt_bind_param_call_user_func.phpt | 17 printf("[002] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 22 printf("[003] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 27 printf("[004] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 38 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 43 0 => &$stmt, 48 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 155 0 => &$stmt, 184 0 => $stmt, 213 0 => $stmt, 241 0 => $stmt, [all …]
|
H A D | mysqli_stmt_affected_rows.phpt | 31 mysqli_stmt_close($stmt); 36 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 38 mysqli_stmt_close($stmt); 43 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 48 mysqli_stmt_close($stmt); 60 mysqli_stmt_close($stmt); 65 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 75 printf("[013] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 85 printf("[015] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 101 printf("[018] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); [all …]
|
H A D | mysqli_stmt_get_result2.phpt | 25 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 28 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 32 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 41 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 59 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 63 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 66 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 70 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 78 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 82 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); [all …]
|
H A D | mysqli_stmt_execute.phpt | 23 // stmt object status test 33 // stmt object status test 41 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 45 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 57 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 60 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 68 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 72 printf("[015] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 76 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 79 if (!mysqli_stmt_bind_result($stmt, $id) || !mysqli_stmt_fetch($stmt)) [all …]
|
H A D | mysqli_stmt_data_seek.phpt | 24 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 32 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 35 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 40 if (!mysqli_stmt_fetch($stmt)) 41 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 49 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 53 if (!is_null($tmp = mysqli_stmt_data_seek($stmt, mysqli_stmt_num_rows($stmt) + 100))) 56 if (mysqli_stmt_fetch($stmt)) 57 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 68 printf("[016] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); [all …]
|
H A D | mysqli_stmt_execute_stored_proc.phpt | 35 if (!mysqli_stmt_close($stmt)) 47 printf("[017] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 52 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 55 mysqli_stmt_close($stmt); 90 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 125 printf("[034] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 130 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 133 mysqli_stmt_close($stmt); 167 printf("[044] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 172 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); [all …]
|
H A D | mysqli_stmt_field_count.phpt | 14 $stmt = mysqli_stmt_init($link); 17 mysqli_stmt_field_count($stmt); 22 if (mysqli_stmt_prepare($stmt, '')) 26 mysqli_stmt_field_count($stmt); 32 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 37 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 42 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 48 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 64 printf("[016] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 70 printf("[018] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); [all …]
|
H A D | mysqli_stmt_get_result.phpt | 25 // stmt object status test 33 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 40 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 43 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 48 mysqli_stmt_close($stmt); 61 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 68 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 87 printf("[019] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 93 printf("[023] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 147 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); [all …]
|
H A D | mysqli_stmt_attr_set.phpt | 43 $stmt->close(); 51 $stmt->execute(); 62 $stmt->close(); 71 $stmt->execute(); 82 $stmt->close(); 102 $stmt->close(); 131 $stmt->close(); 141 $stmt->close(); 155 $stmt->close(); 172 $stmt->close(); [all …]
|
H A D | ps_cursor_multiple_result_sets.phpt | 28 $stmt->execute(); 34 $stmt->next_result(); 39 $stmt->next_result(); 43 $stmt->execute(); 44 $stmt->store_result(); 50 $stmt->next_result(); 51 $stmt->store_result(); 56 $stmt->next_result(); 60 $stmt->execute(); 66 $stmt->next_result(); [all …]
|
H A D | mysqli_stmt_close.phpt | 14 if (!$stmt = mysqli_stmt_init($link)) 19 mysqli_stmt_close($stmt); 25 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 31 mysqli_stmt_close($stmt); 40 printf("[009] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 44 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 48 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 62 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 66 printf("[015] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 68 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt)) [all …]
|
H A D | mysqli_stmt_insert_id.phpt | 14 $stmt = mysqli_stmt_init($link); 17 mysqli_stmt_insert_id($stmt); 23 !mysqli_stmt_execute($stmt)) { 24 printf("[004] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 29 mysqli_stmt_close($stmt); 32 $stmt = mysqli_stmt_init($link); 34 !mysqli_stmt_execute($stmt)) { 35 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 44 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 51 printf("[009] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); [all …]
|
H A D | mysqli_stmt_bind_result_references.phpt | 26 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt)) 43 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt)) 63 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt)) 82 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt)) 96 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt)) 111 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt)) 129 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt)) 149 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt)) 170 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt)) 185 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt)) [all …]
|
H A D | mysqli_stmt_sqlstate.phpt | 14 if (!$stmt = mysqli_stmt_init($link)) 18 mysqli_stmt_sqlstate($stmt); 23 if (!mysqli_stmt_prepare($stmt, "SELECT id FROM test")) 24 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 26 if ('00000' !== ($tmp = mysqli_stmt_sqlstate($stmt))) 28 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 31 printf("[008] Should fail! [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 33 if ('' === ($tmp = mysqli_stmt_sqlstate($stmt))) 34 printf("[009] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 36 mysqli_stmt_close($stmt); [all …]
|
/PHP-8.0/ext/pdo/ |
H A D | pdo_stmt.c | 218 row->stmt = stmt; in get_lazy_object() 288 param->stmt = stmt; in really_register_bound_param() 450 ret = pdo_parse_params(stmt, stmt->query_string, stmt->query_stringlen, in PHP_METHOD() 466 if (stmt->methods->executer(stmt)) { in PHP_METHOD() 1622 stmt->dbh->methods->fetch_err(stmt->dbh, stmt, return_value); in PHP_METHOD() 2175 stmt->methods->dtor(stmt); in php_pdo_free_statement() 2337 pdo_stmt_t *stmt = row->stmt; in row_prop_read() local 2370 pdo_stmt_t *stmt = row->stmt; in row_dim_read() local 2423 pdo_stmt_t *stmt = row->stmt; in row_prop_exists() local 2455 pdo_stmt_t *stmt = row->stmt; in row_dim_exists() local [all …]
|
/PHP-8.0/ext/pdo_mysql/ |
H A D | mysql_statement.c | 74 if (S->stmt) { in pdo_mysql_stmt_dtor() 76 S->stmt = NULL; in pdo_mysql_stmt_dtor() 316 if (S->stmt) { in pdo_mysql_stmt_execute() 339 if (S->stmt) { in pdo_mysql_stmt_next_rowset() 561 if (S->stmt) { in pdo_mysql_stmt_fetch() 576 if (S->stmt) { in pdo_mysql_stmt_fetch() 647 if (S->stmt) { in pdo_mysql_stmt_describe() 670 if (!S->stmt) { in pdo_mysql_stmt_get_col() 681 if (S->stmt) { in pdo_mysql_stmt_get_col() 688 if (S->stmt) { in pdo_mysql_stmt_get_col() [all …]
|
/PHP-8.0/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_stmt_bindvalue.phpt | 27 $stmt->errorCode(), var_export($stmt->errorInfo(), true)); 29 $stmt->execute(); 34 $stmt->errorCode(), var_export($stmt->errorInfo(), true)); 38 $stmt->errorCode(), var_export($stmt->errorInfo(), true)); 49 $stmt->errorCode(), var_export($stmt->errorInfo(), true)); 56 $stmt->errorCode(), var_export($stmt->errorInfo(), true)); 60 $stmt->errorCode(), var_export($stmt->errorInfo(), true)); 73 $stmt->errorCode(), var_export($stmt->errorInfo(), true)); 80 $stmt->errorCode(), var_export($stmt->errorInfo(), true)); 84 $stmt->errorCode(), var_export($stmt->errorInfo(), true)); [all …]
|
/PHP-8.0/ext/mysqli/ |
H A D | mysqli_api.c | 345 MYSQLI_REPORT_STMT_ERROR(stmt->stmt); in PHP_FUNCTION() 379 col_type = (stmt->stmt->fields) ? stmt->stmt->fields[ofs].type : MYSQL_TYPE_STRING; in mysqli_stmt_bind_result_do_bind() 477 …(stmt->stmt->fields) ? (stmt->stmt->fields[ofs].length) ? stmt->stmt->fields[ofs].length + 1: 256:… in mysqli_stmt_bind_result_do_bind() 502 MYSQLI_REPORT_STMT_ERROR(stmt->stmt); in mysqli_stmt_bind_result_do_bind() 913 ret = mysql_stmt_fetch(stmt->stmt); 1802 stmt->stmt = NULL; 1825 if (!stmt->stmt) { 1989 stmt->stmt = NULL; 2045 mysql_stmt_free_result(stmt->stmt); 2092 if (mysql_stmt_reset(stmt->stmt)) { [all …]
|
/PHP-8.0/ext/pdo_oci/tests/ |
H A D | pdo_oci_templob_1.phpt | 27 $stmt->execute(); 28 $row = $stmt->fetch(); 30 $stmt->execute(); 33 $stmt->execute(); 36 $stmt->execute(); 39 $stmt->execute(); 42 $stmt->execute(); 45 $stmt->execute(); 48 $stmt->execute(); 51 $stmt->execute(); [all …]
|
/PHP-8.0/ext/pdo_dblib/tests/ |
H A D | batch_stmt_rowcount.phpt | 14 $stmt = $db->query( 24 var_dump($stmt->rowCount()); 25 var_dump($stmt->nextRowset()); 28 var_dump($stmt->rowCount()); 32 var_dump($stmt->rowCount()); 36 var_dump($stmt->rowCount()); 40 var_dump($stmt->rowCount()); 44 var_dump($stmt->fetchAll()); 45 var_dump($stmt->rowCount()); 49 var_dump($stmt->rowCount()); [all …]
|
/PHP-8.0/ext/oci8/tests/ |
H A D | bind_long.phpt | 14 @oci_execute($stmt); 17 oci_execute($stmt); 26 oci_bind_by_name( $stmt, ":id", $i, -1); 28 oci_execute($stmt, OCI_DEFAULT); 32 oci_execute($stmt); 34 $row = oci_fetch_row($stmt); 44 oci_bind_by_name( $stmt, ":id", $i, -1); 46 oci_execute($stmt, OCI_DEFAULT); 50 oci_execute($stmt); 52 $row = oci_fetch_row($stmt); [all …]
|