stmt_obj 103 ext/sqlite3/php_sqlite3_structs.h php_sqlite3_stmt *stmt_obj; stmt_obj 109 ext/sqlite3/php_sqlite3_structs.h php_sqlite3_stmt *stmt_obj; stmt_obj 462 ext/sqlite3/sqlite3.c php_sqlite3_stmt *stmt_obj; stmt_obj 481 ext/sqlite3/sqlite3.c stmt_obj = Z_SQLITE3_STMT_P(return_value); stmt_obj 482 ext/sqlite3/sqlite3.c stmt_obj->db_obj = db_obj; stmt_obj 483 ext/sqlite3/sqlite3.c ZVAL_COPY(&stmt_obj->db_obj_zval, object); stmt_obj 485 ext/sqlite3/sqlite3.c errcode = sqlite3_prepare_v2(db_obj->db, ZSTR_VAL(sql), ZSTR_LEN(sql), &(stmt_obj->stmt), NULL); stmt_obj 492 ext/sqlite3/sqlite3.c stmt_obj->initialised = 1; stmt_obj 495 ext/sqlite3/sqlite3.c free_item->stmt_obj = stmt_obj; stmt_obj 508 ext/sqlite3/sqlite3.c php_sqlite3_stmt *stmt_obj; stmt_obj 536 ext/sqlite3/sqlite3.c stmt_obj = Z_SQLITE3_STMT_P(&stmt); stmt_obj 537 ext/sqlite3/sqlite3.c stmt_obj->db_obj = db_obj; stmt_obj 538 ext/sqlite3/sqlite3.c ZVAL_COPY(&stmt_obj->db_obj_zval, object); stmt_obj 540 ext/sqlite3/sqlite3.c return_code = sqlite3_prepare_v2(db_obj->db, ZSTR_VAL(sql), ZSTR_LEN(sql), &(stmt_obj->stmt), NULL); stmt_obj 547 ext/sqlite3/sqlite3.c stmt_obj->initialised = 1; stmt_obj 552 ext/sqlite3/sqlite3.c result->stmt_obj = stmt_obj; stmt_obj 555 ext/sqlite3/sqlite3.c return_code = sqlite3_step(result->stmt_obj->stmt); stmt_obj 563 ext/sqlite3/sqlite3.c free_item->stmt_obj = stmt_obj; stmt_obj 566 ext/sqlite3/sqlite3.c sqlite3_reset(result->stmt_obj->stmt); stmt_obj 571 ext/sqlite3/sqlite3.c sqlite3_finalize(stmt_obj->stmt); stmt_obj 572 ext/sqlite3/sqlite3.c stmt_obj->initialised = 0; stmt_obj 1256 ext/sqlite3/sqlite3.c php_sqlite3_stmt *stmt_obj; stmt_obj 1258 ext/sqlite3/sqlite3.c stmt_obj = Z_SQLITE3_STMT_P(object); stmt_obj 1264 ext/sqlite3/sqlite3.c SQLITE3_CHECK_INITIALIZED(stmt_obj->db_obj, stmt_obj->initialised, SQLite3); stmt_obj 1265 ext/sqlite3/sqlite3.c SQLITE3_CHECK_INITIALIZED_STMT(stmt_obj->stmt, SQLite3Stmt); stmt_obj 1267 ext/sqlite3/sqlite3.c RETURN_LONG(sqlite3_bind_parameter_count(stmt_obj->stmt)); stmt_obj 1275 ext/sqlite3/sqlite3.c php_sqlite3_stmt *stmt_obj; stmt_obj 1277 ext/sqlite3/sqlite3.c stmt_obj = Z_SQLITE3_STMT_P(object); stmt_obj 1283 ext/sqlite3/sqlite3.c SQLITE3_CHECK_INITIALIZED(stmt_obj->db_obj, stmt_obj->initialised, SQLite3); stmt_obj 1285 ext/sqlite3/sqlite3.c if(stmt_obj->db_obj) { stmt_obj 1286 ext/sqlite3/sqlite3.c zend_llist_del_element(&(stmt_obj->db_obj->free_list), object, (int (*)(void *, void *)) php_sqlite3_compare_stmt_zval_free); stmt_obj 1297 ext/sqlite3/sqlite3.c php_sqlite3_stmt *stmt_obj; stmt_obj 1299 ext/sqlite3/sqlite3.c stmt_obj = Z_SQLITE3_STMT_P(object); stmt_obj 1305 ext/sqlite3/sqlite3.c SQLITE3_CHECK_INITIALIZED(stmt_obj->db_obj, stmt_obj->initialised, SQLite3); stmt_obj 1306 ext/sqlite3/sqlite3.c SQLITE3_CHECK_INITIALIZED_STMT(stmt_obj->stmt, SQLite3Stmt); stmt_obj 1308 ext/sqlite3/sqlite3.c if (sqlite3_reset(stmt_obj->stmt) != SQLITE_OK) { stmt_obj 1309 ext/sqlite3/sqlite3.c php_sqlite3_error(stmt_obj->db_obj, "Unable to reset statement: %s", sqlite3_errmsg(sqlite3_db_handle(stmt_obj->stmt))); stmt_obj 1320 ext/sqlite3/sqlite3.c php_sqlite3_stmt *stmt_obj; stmt_obj 1322 ext/sqlite3/sqlite3.c stmt_obj = Z_SQLITE3_STMT_P(object); stmt_obj 1328 ext/sqlite3/sqlite3.c SQLITE3_CHECK_INITIALIZED(stmt_obj->db_obj, stmt_obj->initialised, SQLite3); stmt_obj 1329 ext/sqlite3/sqlite3.c SQLITE3_CHECK_INITIALIZED_STMT(stmt_obj->stmt, SQLite3Stmt); stmt_obj 1331 ext/sqlite3/sqlite3.c if (sqlite3_clear_bindings(stmt_obj->stmt) != SQLITE_OK) { stmt_obj 1332 ext/sqlite3/sqlite3.c php_sqlite3_error(stmt_obj->db_obj, "Unable to clear statement: %s", sqlite3_errmsg(sqlite3_db_handle(stmt_obj->stmt))); stmt_obj 1344 ext/sqlite3/sqlite3.c php_sqlite3_stmt *stmt_obj; stmt_obj 1346 ext/sqlite3/sqlite3.c stmt_obj = Z_SQLITE3_STMT_P(object); stmt_obj 1352 ext/sqlite3/sqlite3.c SQLITE3_CHECK_INITIALIZED(stmt_obj->db_obj, stmt_obj->initialised, SQLite3); stmt_obj 1353 ext/sqlite3/sqlite3.c SQLITE3_CHECK_INITIALIZED_STMT(stmt_obj->stmt, SQLite3Stmt); stmt_obj 1356 ext/sqlite3/sqlite3.c if (sqlite3_stmt_readonly(stmt_obj->stmt)) { stmt_obj 1413 ext/sqlite3/sqlite3.c php_sqlite3_stmt *stmt_obj; stmt_obj 1417 ext/sqlite3/sqlite3.c stmt_obj = Z_SQLITE3_STMT_P(object); stmt_obj 1428 ext/sqlite3/sqlite3.c SQLITE3_CHECK_INITIALIZED(stmt_obj->db_obj, stmt_obj->initialised, SQLite3); stmt_obj 1429 ext/sqlite3/sqlite3.c SQLITE3_CHECK_INITIALIZED_STMT(stmt_obj->stmt, SQLite3Stmt); stmt_obj 1433 ext/sqlite3/sqlite3.c if (!register_bound_parameter_to_sqlite(¶m, stmt_obj)) { stmt_obj 1448 ext/sqlite3/sqlite3.c php_sqlite3_stmt *stmt_obj; stmt_obj 1452 ext/sqlite3/sqlite3.c stmt_obj = Z_SQLITE3_STMT_P(object); stmt_obj 1463 ext/sqlite3/sqlite3.c SQLITE3_CHECK_INITIALIZED(stmt_obj->db_obj, stmt_obj->initialised, SQLite3); stmt_obj 1464 ext/sqlite3/sqlite3.c SQLITE3_CHECK_INITIALIZED_STMT(stmt_obj->stmt, SQLite3Stmt); stmt_obj 1468 ext/sqlite3/sqlite3.c if (!register_bound_parameter_to_sqlite(¶m, stmt_obj)) { stmt_obj 1483 ext/sqlite3/sqlite3.c php_sqlite3_stmt *stmt_obj; stmt_obj 1489 ext/sqlite3/sqlite3.c stmt_obj = Z_SQLITE3_STMT_P(object); stmt_obj 1495 ext/sqlite3/sqlite3.c SQLITE3_CHECK_INITIALIZED(stmt_obj->db_obj, stmt_obj->initialised, SQLite3); stmt_obj 1497 ext/sqlite3/sqlite3.c if (stmt_obj->bound_params) { stmt_obj 1498 ext/sqlite3/sqlite3.c ZEND_HASH_FOREACH_PTR(stmt_obj->bound_params, param) { stmt_obj 1509 ext/sqlite3/sqlite3.c sqlite3_bind_null(stmt_obj->stmt, param->param_number); stmt_obj 1517 ext/sqlite3/sqlite3.c sqlite3_bind_int64(stmt_obj->stmt, param->param_number, Z_LVAL_P(parameter)); stmt_obj 1519 ext/sqlite3/sqlite3.c sqlite3_bind_int(stmt_obj->stmt, param->param_number, Z_LVAL_P(parameter)); stmt_obj 1525 ext/sqlite3/sqlite3.c sqlite3_bind_double(stmt_obj->stmt, param->param_number, Z_DVAL_P(parameter)); stmt_obj 1535 ext/sqlite3/sqlite3.c php_sqlite3_error(stmt_obj->db_obj, "Unable to read stream for parameter %ld", param->param_number); stmt_obj 1544 ext/sqlite3/sqlite3.c sqlite3_bind_blob(stmt_obj->stmt, param->param_number, ZSTR_VAL(buffer), ZSTR_LEN(buffer), SQLITE_TRANSIENT); stmt_obj 1547 ext/sqlite3/sqlite3.c sqlite3_bind_null(stmt_obj->stmt, param->param_number); stmt_obj 1554 ext/sqlite3/sqlite3.c sqlite3_bind_text(stmt_obj->stmt, param->param_number, Z_STRVAL_P(parameter), Z_STRLEN_P(parameter), SQLITE_STATIC); stmt_obj 1558 ext/sqlite3/sqlite3.c sqlite3_bind_null(stmt_obj->stmt, param->param_number); stmt_obj 1562 ext/sqlite3/sqlite3.c php_sqlite3_error(stmt_obj->db_obj, "Unknown parameter type: %pd for parameter %pd", param->type, param->param_number); stmt_obj 1568 ext/sqlite3/sqlite3.c return_code = sqlite3_step(stmt_obj->stmt); stmt_obj 1574 ext/sqlite3/sqlite3.c sqlite3_reset(stmt_obj->stmt); stmt_obj 1579 ext/sqlite3/sqlite3.c result->db_obj = stmt_obj->db_obj; stmt_obj 1580 ext/sqlite3/sqlite3.c result->stmt_obj = stmt_obj; stmt_obj 1586 ext/sqlite3/sqlite3.c sqlite3_reset(stmt_obj->stmt); stmt_obj 1589 ext/sqlite3/sqlite3.c php_sqlite3_error(stmt_obj->db_obj, "Unable to execute statement: %s", sqlite3_errmsg(sqlite3_db_handle(stmt_obj->stmt))); stmt_obj 1602 ext/sqlite3/sqlite3.c php_sqlite3_stmt *stmt_obj; stmt_obj 1611 ext/sqlite3/sqlite3.c stmt_obj = Z_SQLITE3_STMT_P(object); stmt_obj 1627 ext/sqlite3/sqlite3.c stmt_obj->db_obj = db_obj; stmt_obj 1628 ext/sqlite3/sqlite3.c ZVAL_COPY(&stmt_obj->db_obj_zval, db_zval); stmt_obj 1630 ext/sqlite3/sqlite3.c errcode = sqlite3_prepare_v2(db_obj->db, ZSTR_VAL(sql), ZSTR_LEN(sql), &(stmt_obj->stmt), NULL); stmt_obj 1636 ext/sqlite3/sqlite3.c stmt_obj->initialised = 1; stmt_obj 1639 ext/sqlite3/sqlite3.c free_item->stmt_obj = stmt_obj; stmt_obj 1655 ext/sqlite3/sqlite3.c SQLITE3_CHECK_INITIALIZED(result_obj->db_obj, result_obj->stmt_obj->initialised, SQLite3Result) stmt_obj 1661 ext/sqlite3/sqlite3.c RETURN_LONG(sqlite3_column_count(result_obj->stmt_obj->stmt)); stmt_obj 1675 ext/sqlite3/sqlite3.c SQLITE3_CHECK_INITIALIZED(result_obj->db_obj, result_obj->stmt_obj->initialised, SQLite3Result) stmt_obj 1680 ext/sqlite3/sqlite3.c column_name = (char*) sqlite3_column_name(result_obj->stmt_obj->stmt, column); stmt_obj 1699 ext/sqlite3/sqlite3.c SQLITE3_CHECK_INITIALIZED(result_obj->db_obj, result_obj->stmt_obj->initialised, SQLite3Result) stmt_obj 1709 ext/sqlite3/sqlite3.c RETURN_LONG(sqlite3_column_type(result_obj->stmt_obj->stmt, column)); stmt_obj 1723 ext/sqlite3/sqlite3.c SQLITE3_CHECK_INITIALIZED(result_obj->db_obj, result_obj->stmt_obj->initialised, SQLite3Result) stmt_obj 1729 ext/sqlite3/sqlite3.c ret = sqlite3_step(result_obj->stmt_obj->stmt); stmt_obj 1739 ext/sqlite3/sqlite3.c for (i = 0; i < sqlite3_data_count(result_obj->stmt_obj->stmt); i++) { stmt_obj 1742 ext/sqlite3/sqlite3.c sqlite_value_to_zval(result_obj->stmt_obj->stmt, i, &data); stmt_obj 1754 ext/sqlite3/sqlite3.c add_assoc_zval(return_value, (char*)sqlite3_column_name(result_obj->stmt_obj->stmt, i), &data); stmt_obj 1765 ext/sqlite3/sqlite3.c php_sqlite3_error(result_obj->db_obj, "Unable to execute statement: %s", sqlite3_errmsg(sqlite3_db_handle(result_obj->stmt_obj->stmt))); stmt_obj 1778 ext/sqlite3/sqlite3.c SQLITE3_CHECK_INITIALIZED(result_obj->db_obj, result_obj->stmt_obj->initialised, SQLite3Result) stmt_obj 1784 ext/sqlite3/sqlite3.c if (sqlite3_reset(result_obj->stmt_obj->stmt) != SQLITE_OK) { stmt_obj 1802 ext/sqlite3/sqlite3.c SQLITE3_CHECK_INITIALIZED(result_obj->db_obj, result_obj->stmt_obj->initialised, SQLite3Result) stmt_obj 1813 ext/sqlite3/sqlite3.c sqlite3_reset(result_obj->stmt_obj->stmt); stmt_obj 2011 ext/sqlite3/sqlite3.c if (free_item->stmt_obj && free_item->stmt_obj->initialised) { stmt_obj 2012 ext/sqlite3/sqlite3.c sqlite3_finalize(free_item->stmt_obj->stmt); stmt_obj 2013 ext/sqlite3/sqlite3.c free_item->stmt_obj->initialised = 0; stmt_obj 2021 ext/sqlite3/sqlite3.c return ((*free_list)->stmt_obj->initialised && Z_PTR_P(statement) == Z_PTR((*free_list)->stmt_obj_zval)); stmt_obj 2027 ext/sqlite3/sqlite3.c return ((*free_list)->stmt_obj->initialised && statement == (*free_list)->stmt_obj->stmt); stmt_obj 2120 ext/sqlite3/sqlite3.c if (intern->stmt_obj && intern->stmt_obj->initialised) { stmt_obj 2121 ext/sqlite3/sqlite3.c sqlite3_reset(intern->stmt_obj->stmt);