/PHP-7.4/ext/mysqli/ |
H A D | mysqli.c | 155 if (stmt->stmt) { in php_clear_stmt_bind() 156 if (mysqli_stmt_close(stmt->stmt, TRUE)) { in php_clear_stmt_bind() 176 if (stmt->query) { in php_clear_stmt_bind() 177 efree(stmt->query); in php_clear_stmt_bind() 179 efree(stmt); in php_clear_stmt_bind() 248 php_clear_stmt_bind(stmt); in mysqli_stmt_free_storage() 1042 MY_STMT *stmt; in ZEND_GET_MODULE() local 1054 if (!(stmt->stmt = mysql_stmt_init(mysql->mysql))) { in ZEND_GET_MODULE() 1055 efree(stmt); in ZEND_GET_MODULE() 1070 if(mysql_stmt_prepare(stmt->stmt, statement, statement_len)) { in ZEND_GET_MODULE() [all …]
|
H A D | mysqli_api.c | 374 MYSQLI_REPORT_STMT_ERROR(stmt->stmt); in PHP_FUNCTION() 413 col_type = (stmt->stmt->fields) ? stmt->stmt->fields[ofs].type : MYSQL_TYPE_STRING; in mysqli_stmt_bind_result_do_bind() 518 …(stmt->stmt->fields) ? (stmt->stmt->fields[ofs].length) ? stmt->stmt->fields[ofs].length + 1: 256:… in mysqli_stmt_bind_result_do_bind() 543 MYSQLI_REPORT_STMT_ERROR(stmt->stmt); in mysqli_stmt_bind_result_do_bind() 965 ret = mysql_stmt_fetch(stmt->stmt); 1875 stmt->stmt = NULL; 1898 if (!stmt->stmt) { 2069 stmt->stmt = NULL; 2127 mysql_stmt_free_result(stmt->stmt); 2177 if (mysql_stmt_reset(stmt->stmt)) { [all …]
|
H A D | mysqli_fe.c | 37 #define MYSQLI_ZEND_ARG_OBJ_INFO_STMT() ZEND_ARG_OBJ_INFO(0, stmt, mysqli_stmt, 0) 41 #define MYSQLI_ZEND_ARG_OBJ_INFO_STMT() ZEND_ARG_INFO(0, stmt)
|
H A D | mysqli_nonapi.c | 531 MY_STMT *stmt; local 539 if (stmt->stmt && stmt->stmt->data && stmt->stmt->data->error_info) { 558 if (mysql_stmt_errno(stmt->stmt)) { 562 add_assoc_long_ex(&single_error, "errno", sizeof("errno") - 1, mysql_stmt_errno(stmt->stmt)); 564 add_assoc_string_ex(&single_error, "error", sizeof("error") - 1, mysql_stmt_error(stmt->stmt)); 950 MY_STMT *stmt; local 958 if (!(result = mysqlnd_stmt_get_result(stmt->stmt))) { 959 MYSQLI_REPORT_STMT_ERROR(stmt->stmt); 1004 MY_STMT *stmt; local 1014 if (mysqli_stmt_warning_count(stmt->stmt)) { [all …]
|
H A D | mysqli_priv.h | 65 extern void php_clear_stmt_bind(MY_STMT *stmt); 137 #define MYSQLI_REPORT_STMT_ERROR(stmt) \ argument 138 if ((MyG(report_mode) & MYSQLI_REPORT_ERROR) && mysql_stmt_errno(stmt)) { \ 139 …php_mysqli_report_error(mysql_stmt_sqlstate(stmt), mysql_stmt_errno(stmt), mysql_stmt_error(stmt))…
|
H A D | mysqli_prop.c | 317 ZVAL_LONG(retval, mysqli_stmt_get_id(p->stmt)); in MYSQLI_MAP_PROPERTY_FUNC_LONG() 337 rc = mysql_stmt_affected_rows(p->stmt); in stmt_affected_rows_read() 358 MY_STMT * stmt; in stmt_error_list_read() local 363 if (stmt && stmt->stmt) { in stmt_error_list_read() 366 if (stmt->stmt->data && stmt->stmt->data->error_info) { in stmt_error_list_read() 369 …for (message = (MYSQLND_ERROR_LIST_ELEMENT *) zend_llist_get_first_ex(&stmt->stmt->data->error_inf… in stmt_error_list_read() 371 …message = (MYSQLND_ERROR_LIST_ELEMENT *) zend_llist_get_next_ex(&stmt->stmt->data->error_info->err… in stmt_error_list_read() 382 if (mysql_stmt_errno(stmt->stmt)) { in stmt_error_list_read() 385 add_assoc_long_ex(&single_error, "errno", sizeof("errno") - 1, mysql_stmt_errno(stmt->stmt)); in stmt_error_list_read() 386 …ssoc_string_ex(&single_error, "sqlstate", sizeof("sqlstate") - 1, mysql_stmt_sqlstate(stmt->stmt)); in stmt_error_list_read() [all …]
|
H A D | mysqli_warning.c | 294 MY_STMT *stmt; local 295 MYSQLI_FETCH_RESOURCE_STMT(stmt, z, MYSQLI_STATUS_VALID); 297 hdl = mysqli_stmt_get_connection(stmt->stmt); 301 if (mysqlnd_stmt_warning_count(stmt->stmt)) { 302 w = php_get_warnings(mysqli_stmt_get_connection(stmt->stmt));
|
H A D | php_mysqli_structs.h | 99 MYSQL_STMT *stmt; member 279 if (!(__ptr)->stmt) { \
|
/PHP-7.4/ext/mysqli/tests/ |
H A D | 002.phpt | 34 …$stmt = mysqli_prepare($link, "SELECT col1, col2, col3, col4, col5, col6, col7, col8, col9, col10,… 35 mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8, $c9, $c10, $c11); 36 mysqli_stmt_execute($stmt); 38 mysqli_stmt_fetch($stmt); 44 mysqli_stmt_close($stmt);
|
H A D | 003.phpt | 61 $stmt = mysqli_prepare($link, "SELECT c1, c2, c3, c4, c5, c6, c7 FROM test_bind_result"); 62 mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7); 63 mysqli_stmt_execute($stmt); 64 mysqli_stmt_fetch($stmt); 70 mysqli_stmt_close($stmt);
|
H A D | 004.phpt | 35 if (!$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch ORDER BY c1")) 39 mysqli_stmt_bind_result($stmt, $c1, $c2); 40 mysqli_stmt_execute($stmt); 43 mysqli_stmt_fetch($stmt); 48 mysqli_stmt_close($stmt);
|
H A D | 005.phpt | 25 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch"); 26 mysqli_stmt_bind_result($stmt, $c1, $c2); 27 mysqli_stmt_execute($stmt); 28 mysqli_stmt_fetch($stmt); 36 mysqli_stmt_fetch($stmt); 38 mysqli_stmt_close($stmt);
|
H A D | 006.phpt | 34 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch"); 35 mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7); 36 mysqli_stmt_execute($stmt); 37 mysqli_stmt_fetch($stmt); 43 mysqli_stmt_close($stmt);
|
H A D | 007.phpt | 34 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch"); 35 mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7); 36 mysqli_stmt_execute($stmt); 37 mysqli_stmt_fetch($stmt); 43 mysqli_stmt_close($stmt);
|
H A D | 008.phpt | 34 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch"); 35 mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7); 36 mysqli_stmt_execute($stmt); 37 mysqli_stmt_fetch($stmt); 43 mysqli_stmt_close($stmt);
|
H A D | 009.phpt | 41 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch"); 42 mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8); 43 mysqli_stmt_execute($stmt); 44 $rc = mysqli_stmt_fetch($stmt); 57 mysqli_stmt_close($stmt); 68 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch_uint"); 69 mysqli_stmt_bind_result($stmt, $c1, $c2); 70 mysqli_stmt_execute($stmt); 71 $rc = mysqli_stmt_fetch($stmt); 75 mysqli_stmt_close($stmt);
|
H A D | 010.phpt | 37 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch"); 38 mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7); 39 mysqli_stmt_execute($stmt); 40 mysqli_stmt_fetch($stmt); 46 mysqli_stmt_close($stmt);
|
H A D | 011.phpt | 34 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_result"); 35 mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8); 36 mysqli_stmt_execute($stmt); 37 mysqli_stmt_fetch($stmt); 43 mysqli_stmt_close($stmt);
|
H A D | 012.phpt | 33 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_result"); 34 mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8); 35 mysqli_stmt_execute($stmt); 36 mysqli_stmt_fetch($stmt); 42 mysqli_stmt_close($stmt);
|
H A D | 013.phpt | 31 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_result"); 34 $b_res= mysqli_stmt_bind_result($stmt, $c[0], $c[1], $c[2], $c[3], $c[4], $c[5], $c[6], $c[7]); 35 mysqli_stmt_execute($stmt); 36 mysqli_stmt_fetch($stmt); 37 mysqli_stmt_fetch($stmt); 38 mysqli_stmt_close($stmt);
|
H A D | 016.phpt | 18 if (!$stmt = mysqli_prepare($link, "SELECT @dummy")) 21 mysqli_stmt_bind_result($stmt, $dummy); 22 mysqli_stmt_execute($stmt); 23 mysqli_stmt_fetch($stmt); 27 mysqli_stmt_close($stmt);
|
H A D | 017.phpt | 16 if (!$stmt = mysqli_prepare($link, "SELECT md5('bar'), database(), 'foo'")) 19 mysqli_stmt_bind_result($stmt, $c0, $c1, $c2); 20 mysqli_stmt_execute($stmt); 22 mysqli_stmt_fetch($stmt); 23 mysqli_stmt_close($stmt);
|
H A D | 018.phpt | 18 if (!$stmt = mysqli_prepare($link, "SELECT @@autocommit")) 21 mysqli_stmt_bind_result($stmt, $c0); 22 mysqli_stmt_execute($stmt); 24 mysqli_stmt_fetch($stmt);
|
H A D | 019.phpt | 28 …if (!$stmt = mysqli_prepare($link, "INSERT INTO insert_read(col1,col10, col11, col6) VALUES (?,?,?… 31 mysqli_stmt_bind_param($stmt, "issd", $c1, $c2, $c3, $c4); 38 mysqli_stmt_execute($stmt); 39 mysqli_stmt_close($stmt); 41 …if (!$stmt = mysqli_prepare($link, "SELECT col1, col2, col3, col4, col5, col6, col7, col8, col9, c… 44 mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8, $c9, $c10, $c11); 45 mysqli_stmt_execute($stmt); 47 mysqli_stmt_fetch($stmt); 53 mysqli_stmt_close($stmt);
|
H A D | 020.phpt | 39 $stmt = mysqli_prepare($link, "INSERT INTO test_bind_result VALUES (?,?,?,?,?,?,?)"); 40 mysqli_stmt_bind_param($stmt, "sssssss", $d1, $d2, $d3, $d4, $d5, $d6, $d7); 50 mysqli_stmt_execute($stmt); 51 mysqli_stmt_close($stmt); 53 $stmt = mysqli_prepare($link, "SELECT c1, c2, c3, c4, c5, c6, c7 FROM test_bind_result"); 55 mysqli_stmt_bind_result($stmt,$c1, $c2, $c3, $c4, $c5, $c6, $c7); 57 mysqli_stmt_execute($stmt); 58 mysqli_stmt_fetch($stmt); 64 mysqli_stmt_close($stmt);
|