/PHP-5.6/ext/mysqlnd/ |
H A D | mysqlnd_ps.c | 55 if (!stmt || !stmt->conn || !stmt->result) { in MYSQLND_METHOD() 151 if (!stmt || !stmt->conn || !stmt->result) { in MYSQLND_METHOD() 234 if (!stmt || !stmt->conn || !stmt->result) { in MYSQLND_METHOD() 267 if (!stmt || !stmt->conn || !stmt->conn->protocol) { in mysqlnd_stmt_skip_metadata() 302 if (!stmt || !stmt->conn || !stmt->conn->protocol) { in mysqlnd_stmt_read_prepare_response() 346 if (!stmt || !stmt->conn || !stmt->conn->protocol) { in mysqlnd_stmt_prepare_read_eof() 385 if (!stmt || !stmt->conn) { in MYSQLND_METHOD() 498 if (!stmt || !stmt->conn) { in mysqlnd_stmt_execute_parse_response() 614 if (!stmt || !stmt->conn) { in MYSQLND_METHOD() 965 if (!stmt || !stmt->conn || !stmt->result) { in MYSQLND_METHOD() [all …]
|
H A D | mysqlnd.h | 172 #define mysqlnd_stmt_num_rows(stmt) (stmt)->m->get_num_rows((stmt) TSRMLS_CC) argument 177 #define mysqlnd_stmt_errno(stmt) (stmt)->m->get_error_no((stmt) TSRMLS_CC) argument 178 #define mysqlnd_stmt_error(stmt) (stmt)->m->get_error_str((stmt) TSRMLS_CC) argument 179 #define mysqlnd_stmt_sqlstate(stmt) (stmt)->m->get_sqlstate((stmt) TSRMLS_CC) argument 229 #define mysqlnd_stmt_get_result(stmt) (stmt)->m->get_result((stmt) TSRMLS_CC) argument 230 #define mysqlnd_stmt_more_results(stmt) (stmt)->m->more_results((stmt) TSRMLS_CC) argument 231 #define mysqlnd_stmt_next_result(stmt) (stmt)->m->next_result((stmt) TSRMLS_CC) argument 234 #define mysqlnd_stmt_execute(stmt) (stmt)->m->execute((stmt) TSRMLS_CC) argument 248 #define mysqlnd_stmt_free_result(stmt) (stmt)->m->free_result((stmt) TSRMLS_CC) argument 250 #define mysqlnd_stmt_reset(stmt) (stmt)->m->reset((stmt) TSRMLS_CC) argument [all …]
|
/PHP-5.6/ext/pdo_sqlite/ |
H A D | sqlite_statement.c | 38 if (S->stmt) { in pdo_sqlite_stmt_dtor() 40 S->stmt = NULL; in pdo_sqlite_stmt_dtor() 51 sqlite3_reset(S->stmt); in pdo_sqlite_stmt_execute() 58 stmt->column_count = sqlite3_data_count(S->stmt); in pdo_sqlite_stmt_execute() 62 stmt->column_count = sqlite3_column_count(S->stmt); in pdo_sqlite_stmt_execute() 64 sqlite3_reset(S->stmt); in pdo_sqlite_stmt_execute() 192 if (!S->stmt) { in pdo_sqlite_stmt_fetch() 230 stmt->columns[colno].name = estrdup(sqlite3_column_name(S->stmt, colno)); in pdo_sqlite_stmt_describe() 231 stmt->columns[colno].namelen = strlen(stmt->columns[colno].name); in pdo_sqlite_stmt_describe() 252 if (!S->stmt) { in pdo_sqlite_stmt_get_col() [all …]
|
/PHP-5.6/ext/mysqli/tests/ |
H A D | mysqli_class_mysqli_stmt_interface.phpt | 89 printf("[001] [%d] %s\n", $stmt->errno, $stmt->error); 94 assert(mysqli_stmt_errno($stmt) === $stmt->errno); 95 printf("stmt->errno = '%s'\n", $stmt->errno); 97 assert(mysqli_stmt_error($stmt) === $stmt->error); 98 printf("stmt->error = '%s'\n", $stmt->error); 101 var_dump("stmt->error = ", $stmt->error_list); 107 printf("stmt->id = '%s'\n", $stmt->id); 113 printf("stmt->num_rows = '%s'\n", $stmt->num_rows); 119 printf("stmt->sqlstate = '%s'\n", $stmt->sqlstate); 122 printf("stmt->unknown = '%s'\n", @$stmt->unknown); [all …]
|
H A D | mysqli_stmt_bind_param_call_user_func.phpt | 22 printf("[002] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 27 printf("[003] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 32 printf("[004] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 43 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 48 0 => &$stmt, 53 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 160 0 => &$stmt, 189 0 => $stmt, 218 0 => $stmt, 246 0 => $stmt, [all …]
|
H A D | mysqli_stmt_affected_rows.phpt | 41 mysqli_stmt_close($stmt); 46 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 48 mysqli_stmt_close($stmt); 53 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 58 mysqli_stmt_close($stmt); 70 mysqli_stmt_close($stmt); 75 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 85 printf("[013] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 95 printf("[015] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 111 printf("[018] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); [all …]
|
H A D | mysqli_stmt_get_result2.phpt | 38 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 41 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 45 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 54 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 60 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 72 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 76 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 83 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 95 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 114 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); [all …]
|
H A D | mysqli_stmt_execute_stored_proc.phpt | 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)); 93 mysqli_stmt_close($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_execute.phpt | 33 // stmt object status test 45 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 49 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 61 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 64 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 80 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 83 if (!mysqli_stmt_bind_result($stmt, $id) || !mysqli_stmt_fetch($stmt)) 91 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 95 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 113 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); [all …]
|
H A D | mysqli_stmt_attr_set.phpt | 68 $stmt->close(); 78 $stmt->execute(); 89 $stmt->close(); 98 $stmt->execute(); 109 $stmt->close(); 118 $stmt->execute(); 129 $stmt->close(); 165 $stmt->close(); 175 $stmt->close(); 189 $stmt->close(); [all …]
|
H A D | mysqli_stmt_get_result.phpt | 35 // stmt object status test 40 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 47 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 50 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 55 mysqli_stmt_close($stmt); 65 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 72 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 88 printf("[019] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 94 printf("[023] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 130 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); [all …]
|
H A D | mysqli_stmt_data_seek.phpt | 31 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 39 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 42 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 47 if (!mysqli_stmt_fetch($stmt)) 48 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 56 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 60 if (!is_null($tmp = mysqli_stmt_data_seek($stmt, mysqli_stmt_num_rows($stmt) + 100))) 63 if (mysqli_stmt_fetch($stmt)) 64 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 72 printf("[016] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); [all …]
|
H A D | mysqli_stmt_insert_id.phpt | 19 $stmt = @new mysqli_stmt($link); 25 $stmt = mysqli_stmt_init($link); 30 !mysqli_stmt_execute($stmt)) { 31 printf("[004] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 36 mysqli_stmt_close($stmt); 39 $stmt = mysqli_stmt_init($link); 41 !mysqli_stmt_execute($stmt)) { 42 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 51 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 58 printf("[009] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); [all …]
|
H A D | mysqli_stmt_bind_result_references.phpt | 27 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt)) 44 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt)) 64 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt)) 83 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt)) 97 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt)) 112 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt)) 130 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt)) 150 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt)) 171 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt)) 186 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt)) [all …]
|
H A D | mysqli_stmt_close.phpt | 24 if (!$stmt = mysqli_stmt_init($link)) 32 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 40 if (!$stmt = mysqli_stmt_init($link)) 44 printf("[009] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 48 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 51 if (!mysqli_stmt_execute($stmt)) 52 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 66 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 70 printf("[015] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 72 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt)) [all …]
|
H A D | mysqli_ps_select_union.phpt | 31 if (!$stmt->execute() || !$stmt->bind_result($column1)) 32 printf("[003] [%d] %s\n", $stmt->errno, $stmt->error); 57 if (!$stmt->bind_result($column1) || !$stmt->execute()) 58 printf("[006] [%d] %s\n", $stmt->errno, $stmt->error); 87 if (!$stmt->execute() || !$stmt->bind_result($column1)) 88 printf("[010] [%d] %s\n", $stmt->errno, $stmt->error); 107 if (!$stmt->bind_result($column1) || !$stmt->execute()) 108 printf("[013] [%d] %s\n", $stmt->errno, $stmt->error); 136 if (!$stmt->execute() || !$stmt->bind_result($column1)) 137 printf("[017] [%d] %s\n", $stmt->errno, $stmt->error); [all …]
|
H A D | mysqli_stmt_field_count.phpt | 24 $stmt = mysqli_stmt_init($link); 34 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 39 printf("[008] [%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)); 49 !mysqli_stmt_execute($stmt)) 50 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 57 while (mysqli_stmt_fetch($stmt)) 62 printf("[016] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 67 !mysqli_stmt_execute($stmt)) 68 printf("[018] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); [all …]
|
H A D | mysqli_stmt_multires.phpt | 27 printf("[003] [%d] %s\n", $stmt->error, $stmt->errno); 31 printf("[005] [%d] %s\n", $stmt->error, $stmt->errno); 37 printf("[004] [%d] %s\n", $stmt->error, $stmt->errno); 41 if (!$stmt->fetch()) { 42 printf("[006] [%d] %s\n", $stmt->error, $stmt->errno); 47 if ($stmt->fetch()) { 52 if ($stmt->fetch()) { 63 printf("[010] [%d] %s\n", $stmt->error, $stmt->errno); 68 printf("[011] [%d] %s\n", $stmt->error, $stmt->errno); 73 if ($stmt->fetch()) { [all …]
|
H A D | mysqli_stmt_fetch_fields_win32_unicode.phpt | 15 if (!($stmt = mysqli_stmt_init($link)) || 17 !mysqli_stmt_execute($stmt) || 18 !($result = mysqli_stmt_result_metadata($stmt)) || 19 !mysqli_stmt_bind_result($stmt, $id, $bind_res) || 23 while (mysqli_stmt_fetch($stmt)) { 27 mysqli_stmt_close($stmt); 29 if (!($stmt = mysqli_stmt_init($link)) || 31 !mysqli_stmt_execute($stmt) || 32 !($result = mysqli_stmt_result_metadata($stmt)) || 40 while (mysqli_stmt_fetch($stmt)) { [all …]
|
H A D | bug62046.phpt | 15 if (FALSE === ($stmt = $link->prepare('SELECT 42'))) { 18 if (FALSE === $stmt->execute()) { 19 printf("[003] Execute failed, [%d] %s\n", $stmt->errorno, $stmt->error); 21 if (FALSE === $stmt->store_result()) { 22 printf("[004] store_result failed, [%d] %s\n", $stmt->errorno, $stmt->error); 25 if (FALSE === $stmt->bind_result($one)) { 26 printf("[005] bind_result failed, [%d] %s\n", $stmt->errorno, $stmt->error); 28 if (FALSE === $stmt->reset()) { 29 printf("[006] bind_result failed, [%d] %s\n", $stmt->errorno, $stmt->error); 31 while ($stmt->fetch()) { [all …]
|
/PHP-5.6/ext/pdo/ |
H A D | pdo_stmt.c | 334 param->stmt = stmt; in really_register_bound_param() 497 ret = pdo_parse_params(stmt, stmt->query_string, stmt->query_stringlen, in PHP_METHOD() 514 if (stmt->methods->executer(stmt TSRMLS_CC)) { in PHP_METHOD() 515 if (stmt->active_query_string && stmt->active_query_string != stmt->query_string) { in PHP_METHOD() 537 if (stmt->active_query_string && stmt->active_query_string != stmt->query_string) { in PHP_METHOD() 1702 stmt->dbh->methods->fetch_err(stmt->dbh, stmt, return_value TSRMLS_CC); in PHP_METHOD() 2297 stmt = ecalloc(1, sizeof(*stmt)); in dbstmt_clone_obj() 2363 stmt->methods->dtor(stmt TSRMLS_CC); in free_statement() 2420 stmt = emalloc(sizeof(*stmt)); in pdo_dbstmt_new() 2421 memset(stmt, 0, sizeof(*stmt)); in pdo_dbstmt_new() [all …]
|
/PHP-5.6/ext/pdo_mysql/ |
H A D | mysql_statement.c | 38 # define pdo_mysql_stmt_close(stmt) mysqlnd_stmt_close(stmt, 0) argument 42 # define pdo_mysql_stmt_close(stmt) mysql_stmt_close(stmt) argument 62 if (S->stmt) { in pdo_mysql_stmt_dtor() 64 S->stmt = NULL; in pdo_mysql_stmt_dtor() 293 stmt->column_count = mysql_stmt_field_count(S->stmt); in pdo_mysql_stmt_execute_prepared_mysqlnd() 322 if (S->stmt) { in pdo_mysql_stmt_execute() 377 stmt->column_count = mysql_stmt_field_count(S->stmt); in pdo_mysql_stmt_next_rowset() 404 if (S->stmt) { in pdo_mysql_stmt_next_rowset() 598 if (S->stmt) { 608 if (S->stmt) { [all …]
|
/PHP-5.6/ext/mysqli/ |
H A D | mysqli_api.c | 375 MYSQLI_REPORT_STMT_ERROR(stmt->stmt); in PHP_FUNCTION() 414 col_type = (stmt->stmt->fields) ? stmt->stmt->fields[ofs].type : MYSQL_TYPE_STRING; in mysqli_stmt_bind_result_do_bind() 522 …(stmt->stmt->fields) ? (stmt->stmt->fields[ofs].length) ? stmt->stmt->fields[ofs].length + 1: 256:… in mysqli_stmt_bind_result_do_bind() 547 MYSQLI_REPORT_STMT_ERROR(stmt->stmt); in mysqli_stmt_bind_result_do_bind() 1019 ret = mysql_stmt_fetch(stmt->stmt); 1928 stmt->stmt = NULL; 1950 if (!stmt->stmt) { 2119 stmt->stmt = NULL; 2177 mysql_stmt_free_result(stmt->stmt); 2227 if (mysql_stmt_reset(stmt->stmt)) { [all …]
|
/PHP-5.6/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_stmt_bindvalue.phpt | 27 $stmt->errorCode(), var_export($stmt->errorInfo(), true)); 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)); 98 $stmt->errorCode(), var_export($stmt->errorInfo(), true)); [all …]
|
/PHP-5.6/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 …]
|