Lines Matching refs:command

41 mysqlnd_com_no_params_free_command(void * command)  in mysqlnd_com_no_params_free_command()  argument
44 mnd_efree(command); in mysqlnd_com_no_params_free_command()
66 …struct st_mysqlnd_protocol_com_set_option_command * command = (struct st_mysqlnd_protocol_com_set_… in mysqlnd_com_set_option_run() local
69 MYSQLND_CONN_DATA * conn = command->context.conn; in mysqlnd_com_set_option_run()
70 enum_mysqlnd_server_option option = command->context.option; in mysqlnd_com_set_option_run()
97 struct st_mysqlnd_protocol_com_set_option_command * command; in mysqlnd_com_set_option_create_command() local
99 command = mnd_ecalloc(1, sizeof(struct st_mysqlnd_protocol_com_set_option_command)); in mysqlnd_com_set_option_create_command()
100 if (command) { in mysqlnd_com_set_option_create_command()
101 command->context.conn = va_arg(args, MYSQLND_CONN_DATA *); in mysqlnd_com_set_option_create_command()
102 command->context.option = va_arg(args, enum_mysqlnd_server_option); in mysqlnd_com_set_option_create_command()
104 command->parent.free_command = mysqlnd_com_no_params_free_command; in mysqlnd_com_set_option_create_command()
105 command->parent.run = mysqlnd_com_set_option_run; in mysqlnd_com_set_option_create_command()
108 DBG_RETURN((struct st_mysqlnd_protocol_command *) command); in mysqlnd_com_set_option_create_command()
118 …struct st_mysqlnd_protocol_no_params_command * command = (struct st_mysqlnd_protocol_no_params_com… in mysqlnd_com_debug_run() local
120 MYSQLND_CONN_DATA * conn = command->context.conn; in mysqlnd_com_debug_run()
147 struct st_mysqlnd_protocol_no_params_command * command; in mysqlnd_com_debug_create_command() local
149 command = mnd_ecalloc(1, sizeof(struct st_mysqlnd_protocol_no_params_command)); in mysqlnd_com_debug_create_command()
150 if (command) { in mysqlnd_com_debug_create_command()
151 command->context.conn = va_arg(args, MYSQLND_CONN_DATA *); in mysqlnd_com_debug_create_command()
152 command->parent.free_command = mysqlnd_com_no_params_free_command; in mysqlnd_com_debug_create_command()
154 command->parent.run = mysqlnd_com_debug_run; in mysqlnd_com_debug_create_command()
157 DBG_RETURN((struct st_mysqlnd_protocol_command *) command); in mysqlnd_com_debug_create_command()
178 …struct st_mysqlnd_protocol_com_init_db_command * command = (struct st_mysqlnd_protocol_com_init_db… in mysqlnd_com_init_db_run() local
180 MYSQLND_CONN_DATA * conn = command->context.conn; in mysqlnd_com_init_db_run()
181 const MYSQLND_CSTRING db = command->context.db; in mysqlnd_com_init_db_run()
187 …nd(conn->payload_decoder_factory, COM_INIT_DB, (zend_uchar*) command->context.db.s, command->conte… in mysqlnd_com_init_db_run()
226 struct st_mysqlnd_protocol_com_init_db_command * command; in mysqlnd_com_init_db_create_command() local
228 command = mnd_ecalloc(1, sizeof(struct st_mysqlnd_protocol_com_init_db_command)); in mysqlnd_com_init_db_create_command()
229 if (command) { in mysqlnd_com_init_db_create_command()
230 command->context.conn = va_arg(args, MYSQLND_CONN_DATA *); in mysqlnd_com_init_db_create_command()
231 command->context.db = va_arg(args, MYSQLND_CSTRING); in mysqlnd_com_init_db_create_command()
233 command->parent.free_command = mysqlnd_com_no_params_free_command; in mysqlnd_com_init_db_create_command()
234 command->parent.run = mysqlnd_com_init_db_run; in mysqlnd_com_init_db_create_command()
237 DBG_RETURN((struct st_mysqlnd_protocol_command *) command); in mysqlnd_com_init_db_create_command()
247 …struct st_mysqlnd_protocol_no_params_command * command = (struct st_mysqlnd_protocol_no_params_com… in mysqlnd_com_ping_run() local
249 MYSQLND_CONN_DATA * conn = command->context.conn; in mysqlnd_com_ping_run()
281 struct st_mysqlnd_protocol_no_params_command * command; in mysqlnd_com_ping_create_command() local
283 command = mnd_ecalloc(1, sizeof(struct st_mysqlnd_protocol_no_params_command)); in mysqlnd_com_ping_create_command()
284 if (command) { in mysqlnd_com_ping_create_command()
285 command->context.conn = va_arg(args, MYSQLND_CONN_DATA *); in mysqlnd_com_ping_create_command()
286 command->parent.free_command = mysqlnd_com_no_params_free_command; in mysqlnd_com_ping_create_command()
288 command->parent.run = mysqlnd_com_ping_run; in mysqlnd_com_ping_create_command()
291 DBG_RETURN((struct st_mysqlnd_protocol_command *) command); in mysqlnd_com_ping_create_command()
312 …struct st_mysqlnd_protocol_com_statistics_command * command = (struct st_mysqlnd_protocol_com_stat… in mysqlnd_com_statistics_run() local
314 MYSQLND_CONN_DATA * conn = command->context.conn; in mysqlnd_com_statistics_run()
315 zend_string **message = command->context.message; in mysqlnd_com_statistics_run()
351 struct st_mysqlnd_protocol_com_statistics_command * command; in mysqlnd_com_statistics_create_command() local
353 command = mnd_ecalloc(1, sizeof(struct st_mysqlnd_protocol_com_statistics_command)); in mysqlnd_com_statistics_create_command()
354 if (command) { in mysqlnd_com_statistics_create_command()
355 command->context.conn = va_arg(args, MYSQLND_CONN_DATA *); in mysqlnd_com_statistics_create_command()
356 command->context.message = va_arg(args, zend_string **); in mysqlnd_com_statistics_create_command()
358 command->parent.free_command = mysqlnd_com_no_params_free_command; in mysqlnd_com_statistics_create_command()
359 command->parent.run = mysqlnd_com_statistics_run; in mysqlnd_com_statistics_create_command()
362 DBG_RETURN((struct st_mysqlnd_protocol_command *) command); in mysqlnd_com_statistics_create_command()
383 …struct st_mysqlnd_protocol_com_process_kill_command * command = (struct st_mysqlnd_protocol_com_pr… in mysqlnd_com_process_kill_run() local
386 MYSQLND_CONN_DATA * conn = command->context.conn; in mysqlnd_com_process_kill_run()
387 zend_bool read_response = command->context.read_response; in mysqlnd_com_process_kill_run()
392 int4store(buff, command->context.process_id); in mysqlnd_com_process_kill_run()
426 struct st_mysqlnd_protocol_com_process_kill_command * command; in mysqlnd_com_process_kill_create_command() local
428 command = mnd_ecalloc(1, sizeof(struct st_mysqlnd_protocol_com_process_kill_command)); in mysqlnd_com_process_kill_create_command()
429 if (command) { in mysqlnd_com_process_kill_create_command()
430 command->context.conn = va_arg(args, MYSQLND_CONN_DATA *); in mysqlnd_com_process_kill_create_command()
431 command->context.process_id = va_arg(args, unsigned int); in mysqlnd_com_process_kill_create_command()
432 command->context.read_response = va_arg(args, unsigned int)? TRUE:FALSE; in mysqlnd_com_process_kill_create_command()
434 command->parent.free_command = mysqlnd_com_no_params_free_command; in mysqlnd_com_process_kill_create_command()
435 command->parent.run = mysqlnd_com_process_kill_run; in mysqlnd_com_process_kill_create_command()
438 DBG_RETURN((struct st_mysqlnd_protocol_command *) command); in mysqlnd_com_process_kill_create_command()
458 …struct st_mysqlnd_protocol_com_refresh_command * command = (struct st_mysqlnd_protocol_com_refresh… in mysqlnd_com_refresh_run() local
461 MYSQLND_CONN_DATA * conn = command->context.conn; in mysqlnd_com_refresh_run()
466 int1store(bits, command->context.options); in mysqlnd_com_refresh_run()
489 struct st_mysqlnd_protocol_com_refresh_command * command; in mysqlnd_com_refresh_create_command() local
491 command = mnd_ecalloc(1, sizeof(struct st_mysqlnd_protocol_com_refresh_command)); in mysqlnd_com_refresh_create_command()
492 if (command) { in mysqlnd_com_refresh_create_command()
493 command->context.conn = va_arg(args, MYSQLND_CONN_DATA *); in mysqlnd_com_refresh_create_command()
494 command->context.options = va_arg(args, unsigned int); in mysqlnd_com_refresh_create_command()
496 command->parent.free_command = mysqlnd_com_no_params_free_command; in mysqlnd_com_refresh_create_command()
497 command->parent.run = mysqlnd_com_refresh_run; in mysqlnd_com_refresh_create_command()
500 DBG_RETURN((struct st_mysqlnd_protocol_command *) command); in mysqlnd_com_refresh_create_command()
521 …struct st_mysqlnd_protocol_com_shutdown_command * command = (struct st_mysqlnd_protocol_com_shutdo… in mysqlnd_com_shutdown_run() local
524 MYSQLND_CONN_DATA * conn = command->context.conn; in mysqlnd_com_shutdown_run()
529 int1store(bits, command->context.level); in mysqlnd_com_shutdown_run()
552 struct st_mysqlnd_protocol_com_shutdown_command * command; in mysqlnd_com_shutdown_create_command() local
554 command = mnd_ecalloc(1, sizeof(struct st_mysqlnd_protocol_com_shutdown_command)); in mysqlnd_com_shutdown_create_command()
555 if (command) { in mysqlnd_com_shutdown_create_command()
556 command->context.conn = va_arg(args, MYSQLND_CONN_DATA *); in mysqlnd_com_shutdown_create_command()
557 command->context.level = va_arg(args, unsigned int); in mysqlnd_com_shutdown_create_command()
559 command->parent.free_command = mysqlnd_com_no_params_free_command; in mysqlnd_com_shutdown_create_command()
560 command->parent.run = mysqlnd_com_shutdown_run; in mysqlnd_com_shutdown_create_command()
563 DBG_RETURN((struct st_mysqlnd_protocol_command *) command); in mysqlnd_com_shutdown_create_command()
583 …struct st_mysqlnd_protocol_com_quit_command * command = (struct st_mysqlnd_protocol_com_quit_comma… in mysqlnd_com_quit_run() local
585 MYSQLND_CONN_DATA * conn = command->context.conn; in mysqlnd_com_quit_run()
607 struct st_mysqlnd_protocol_com_quit_command * command; in mysqlnd_com_quit_create_command() local
609 command = mnd_ecalloc(1, sizeof(struct st_mysqlnd_protocol_com_quit_command)); in mysqlnd_com_quit_create_command()
610 if (command) { in mysqlnd_com_quit_create_command()
611 command->context.conn = va_arg(args, MYSQLND_CONN_DATA *); in mysqlnd_com_quit_create_command()
613 command->parent.free_command = mysqlnd_com_no_params_free_command; in mysqlnd_com_quit_create_command()
614 command->parent.run = mysqlnd_com_quit_run; in mysqlnd_com_quit_create_command()
617 DBG_RETURN((struct st_mysqlnd_protocol_command *) command); in mysqlnd_com_quit_create_command()
637 …struct st_mysqlnd_protocol_com_query_command * command = (struct st_mysqlnd_protocol_com_query_com… in mysqlnd_com_query_run() local
639 MYSQLND_CONN_DATA * conn = command->context.conn; in mysqlnd_com_query_run()
644 …and(conn->payload_decoder_factory, COM_QUERY, (zend_uchar*) command->context.query.s, command->con… in mysqlnd_com_query_run()
665 struct st_mysqlnd_protocol_com_query_command * command; in mysqlnd_com_query_create_command() local
667 command = mnd_ecalloc(1, sizeof(struct st_mysqlnd_protocol_com_query_command)); in mysqlnd_com_query_create_command()
668 if (command) { in mysqlnd_com_query_create_command()
669 command->context.conn = va_arg(args, MYSQLND_CONN_DATA *); in mysqlnd_com_query_create_command()
670 command->context.query = va_arg(args, MYSQLND_CSTRING); in mysqlnd_com_query_create_command()
672 command->parent.free_command = mysqlnd_com_no_params_free_command; in mysqlnd_com_query_create_command()
673 command->parent.run = mysqlnd_com_query_run; in mysqlnd_com_query_create_command()
676 DBG_RETURN((struct st_mysqlnd_protocol_command *) command); in mysqlnd_com_query_create_command()
697 …struct st_mysqlnd_protocol_com_change_user_command * command = (struct st_mysqlnd_protocol_com_cha… in mysqlnd_com_change_user_run() local
699 MYSQLND_CONN_DATA * conn = command->context.conn; in mysqlnd_com_change_user_run()
704 …oder_factory, COM_CHANGE_USER, (zend_uchar*) command->context.payload.s, command->context.payload.… in mysqlnd_com_change_user_run()
721 struct st_mysqlnd_protocol_com_change_user_command * command; in mysqlnd_com_change_user_create_command() local
723 command = mnd_ecalloc(1, sizeof(struct st_mysqlnd_protocol_com_change_user_command)); in mysqlnd_com_change_user_create_command()
724 if (command) { in mysqlnd_com_change_user_create_command()
725 command->context.conn = va_arg(args, MYSQLND_CONN_DATA *); in mysqlnd_com_change_user_create_command()
726 command->context.payload = va_arg(args, MYSQLND_CSTRING); in mysqlnd_com_change_user_create_command()
727 command->context.silent = va_arg(args, unsigned int); in mysqlnd_com_change_user_create_command()
729 command->parent.free_command = mysqlnd_com_no_params_free_command; in mysqlnd_com_change_user_create_command()
730 command->parent.run = mysqlnd_com_change_user_run; in mysqlnd_com_change_user_create_command()
733 DBG_RETURN((struct st_mysqlnd_protocol_command *) command); in mysqlnd_com_change_user_create_command()
753 …struct st_mysqlnd_protocol_com_reap_result_command * command = (struct st_mysqlnd_protocol_com_rea… in mysqlnd_com_reap_result_run() local
755 MYSQLND_CONN_DATA * conn = command->context.conn; in mysqlnd_com_reap_result_run()
775 struct st_mysqlnd_protocol_com_reap_result_command * command; in mysqlnd_com_reap_result_create_command() local
777 command = mnd_ecalloc(1, sizeof(struct st_mysqlnd_protocol_com_reap_result_command)); in mysqlnd_com_reap_result_create_command()
778 if (command) { in mysqlnd_com_reap_result_create_command()
779 command->context.conn = va_arg(args, MYSQLND_CONN_DATA *); in mysqlnd_com_reap_result_create_command()
781 command->parent.free_command = mysqlnd_com_no_params_free_command; in mysqlnd_com_reap_result_create_command()
782 command->parent.run = mysqlnd_com_reap_result_run; in mysqlnd_com_reap_result_create_command()
785 DBG_RETURN((struct st_mysqlnd_protocol_command *) command); in mysqlnd_com_reap_result_create_command()
806 …struct st_mysqlnd_protocol_com_stmt_prepare_command * command = (struct st_mysqlnd_protocol_com_st… in mysqlnd_com_stmt_prepare_run() local
808 MYSQLND_CONN_DATA * conn = command->context.conn; in mysqlnd_com_stmt_prepare_run()
813 …n->payload_decoder_factory, COM_STMT_PREPARE, (zend_uchar*) command->context.query.s, command->con… in mysqlnd_com_stmt_prepare_run()
830 struct st_mysqlnd_protocol_com_stmt_prepare_command * command; in mysqlnd_com_stmt_prepare_create_command() local
832 command = mnd_ecalloc(1, sizeof(struct st_mysqlnd_protocol_com_stmt_prepare_command)); in mysqlnd_com_stmt_prepare_create_command()
833 if (command) { in mysqlnd_com_stmt_prepare_create_command()
834 command->context.conn = va_arg(args, MYSQLND_CONN_DATA *); in mysqlnd_com_stmt_prepare_create_command()
835 command->context.query = va_arg(args, MYSQLND_CSTRING); in mysqlnd_com_stmt_prepare_create_command()
837 command->parent.free_command = mysqlnd_com_no_params_free_command; in mysqlnd_com_stmt_prepare_create_command()
838 command->parent.run = mysqlnd_com_stmt_prepare_run; in mysqlnd_com_stmt_prepare_create_command()
841 DBG_RETURN((struct st_mysqlnd_protocol_command *) command); in mysqlnd_com_stmt_prepare_create_command()
862 …struct st_mysqlnd_protocol_com_stmt_execute_command * command = (struct st_mysqlnd_protocol_com_st… in mysqlnd_com_stmt_execute_run() local
864 MYSQLND_CONN_DATA * conn = command->context.conn; in mysqlnd_com_stmt_execute_run()
869 …->payload_decoder_factory, COM_STMT_EXECUTE, (zend_uchar*) command->context.payload.s, command->co… in mysqlnd_com_stmt_execute_run()
886 struct st_mysqlnd_protocol_com_stmt_execute_command * command; in mysqlnd_com_stmt_execute_create_command() local
888 command = mnd_ecalloc(1, sizeof(struct st_mysqlnd_protocol_com_stmt_execute_command)); in mysqlnd_com_stmt_execute_create_command()
889 if (command) { in mysqlnd_com_stmt_execute_create_command()
890 command->context.conn = va_arg(args, MYSQLND_CONN_DATA *); in mysqlnd_com_stmt_execute_create_command()
891 command->context.payload = va_arg(args, MYSQLND_CSTRING); in mysqlnd_com_stmt_execute_create_command()
893 command->parent.free_command = mysqlnd_com_no_params_free_command; in mysqlnd_com_stmt_execute_create_command()
894 command->parent.run = mysqlnd_com_stmt_execute_run; in mysqlnd_com_stmt_execute_create_command()
897 DBG_RETURN((struct st_mysqlnd_protocol_command *) command); in mysqlnd_com_stmt_execute_create_command()
918 …struct st_mysqlnd_protocol_com_stmt_fetch_command * command = (struct st_mysqlnd_protocol_com_stmt… in mysqlnd_com_stmt_fetch_run() local
920 MYSQLND_CONN_DATA * conn = command->context.conn; in mysqlnd_com_stmt_fetch_run()
925 …nn->payload_decoder_factory, COM_STMT_FETCH, (zend_uchar*) command->context.payload.s, command->co… in mysqlnd_com_stmt_fetch_run()
942 struct st_mysqlnd_protocol_com_stmt_fetch_command * command; in mysqlnd_com_stmt_fetch_create_command() local
944 command = mnd_ecalloc(1, sizeof(struct st_mysqlnd_protocol_com_stmt_fetch_command)); in mysqlnd_com_stmt_fetch_create_command()
945 if (command) { in mysqlnd_com_stmt_fetch_create_command()
946 command->context.conn = va_arg(args, MYSQLND_CONN_DATA *); in mysqlnd_com_stmt_fetch_create_command()
947 command->context.payload = va_arg(args, MYSQLND_CSTRING); in mysqlnd_com_stmt_fetch_create_command()
949 command->parent.free_command = mysqlnd_com_no_params_free_command; in mysqlnd_com_stmt_fetch_create_command()
950 command->parent.run = mysqlnd_com_stmt_fetch_run; in mysqlnd_com_stmt_fetch_create_command()
953 DBG_RETURN((struct st_mysqlnd_protocol_command *) command); in mysqlnd_com_stmt_fetch_create_command()
975 …struct st_mysqlnd_protocol_com_stmt_reset_command * command = (struct st_mysqlnd_protocol_com_stmt… in mysqlnd_com_stmt_reset_run() local
977 MYSQLND_CONN_DATA * conn = command->context.conn; in mysqlnd_com_stmt_reset_run()
983 int4store(cmd_buf, command->context.stmt_id); in mysqlnd_com_stmt_reset_run()
1005 struct st_mysqlnd_protocol_com_stmt_reset_command * command; in mysqlnd_com_stmt_reset_create_command() local
1007 command = mnd_ecalloc(1, sizeof(struct st_mysqlnd_protocol_com_stmt_reset_command)); in mysqlnd_com_stmt_reset_create_command()
1008 if (command) { in mysqlnd_com_stmt_reset_create_command()
1009 command->context.conn = va_arg(args, MYSQLND_CONN_DATA *); in mysqlnd_com_stmt_reset_create_command()
1010 command->context.stmt_id = va_arg(args, size_t); in mysqlnd_com_stmt_reset_create_command()
1012 command->parent.free_command = mysqlnd_com_no_params_free_command; in mysqlnd_com_stmt_reset_create_command()
1013 command->parent.run = mysqlnd_com_stmt_reset_run; in mysqlnd_com_stmt_reset_create_command()
1016 DBG_RETURN((struct st_mysqlnd_protocol_command *) command); in mysqlnd_com_stmt_reset_create_command()
1037 …struct st_mysqlnd_protocol_com_stmt_send_long_data_command * command = (struct st_mysqlnd_protocol… in mysqlnd_com_stmt_send_long_data_run() local
1039 MYSQLND_CONN_DATA * conn = command->context.conn; in mysqlnd_com_stmt_send_long_data_run()
1044 …ad_decoder_factory, COM_STMT_SEND_LONG_DATA, (zend_uchar*) command->context.payload.s, command->co… in mysqlnd_com_stmt_send_long_data_run()
1061 struct st_mysqlnd_protocol_com_stmt_send_long_data_command * command; in mysqlnd_com_stmt_send_long_data_create_command() local
1063 command = mnd_ecalloc(1, sizeof(struct st_mysqlnd_protocol_com_stmt_send_long_data_command)); in mysqlnd_com_stmt_send_long_data_create_command()
1064 if (command) { in mysqlnd_com_stmt_send_long_data_create_command()
1065 command->context.conn = va_arg(args, MYSQLND_CONN_DATA *); in mysqlnd_com_stmt_send_long_data_create_command()
1066 command->context.payload = va_arg(args, MYSQLND_CSTRING); in mysqlnd_com_stmt_send_long_data_create_command()
1068 command->parent.free_command = mysqlnd_com_no_params_free_command; in mysqlnd_com_stmt_send_long_data_create_command()
1069 command->parent.run = mysqlnd_com_stmt_send_long_data_run; in mysqlnd_com_stmt_send_long_data_create_command()
1072 DBG_RETURN((struct st_mysqlnd_protocol_command *) command); in mysqlnd_com_stmt_send_long_data_create_command()
1094 …struct st_mysqlnd_protocol_com_stmt_close_command * command = (struct st_mysqlnd_protocol_com_stmt… in mysqlnd_com_stmt_close_run() local
1096 MYSQLND_CONN_DATA * conn = command->context.conn; in mysqlnd_com_stmt_close_run()
1101 int4store(cmd_buf, command->context.stmt_id); in mysqlnd_com_stmt_close_run()
1119 struct st_mysqlnd_protocol_com_stmt_close_command * command; in mysqlnd_com_stmt_close_create_command() local
1121 command = mnd_ecalloc(1, sizeof(struct st_mysqlnd_protocol_com_stmt_close_command)); in mysqlnd_com_stmt_close_create_command()
1122 if (command) { in mysqlnd_com_stmt_close_create_command()
1123 command->context.conn = va_arg(args, MYSQLND_CONN_DATA *); in mysqlnd_com_stmt_close_create_command()
1124 command->context.stmt_id = va_arg(args, size_t); in mysqlnd_com_stmt_close_create_command()
1126 command->parent.free_command = mysqlnd_com_no_params_free_command; in mysqlnd_com_stmt_close_create_command()
1127 command->parent.run = mysqlnd_com_stmt_close_run; in mysqlnd_com_stmt_close_create_command()
1130 DBG_RETURN((struct st_mysqlnd_protocol_command *) command); in mysqlnd_com_stmt_close_create_command()
1154 …struct st_mysqlnd_protocol_com_enable_ssl_command * command = (struct st_mysqlnd_protocol_com_enab… in mysqlnd_com_enable_ssl_run() local
1156 MYSQLND_CONN_DATA * conn = command->context.conn; in mysqlnd_com_enable_ssl_run()
1158 size_t client_capabilities = command->context.client_capabilities; in mysqlnd_com_enable_ssl_run()
1159 size_t server_capabilities = command->context.server_capabilities; in mysqlnd_com_enable_ssl_run()
1196 auth_packet->charset_no = command->context.charset_no; in mysqlnd_com_enable_ssl_run()
1246 struct st_mysqlnd_protocol_com_enable_ssl_command * command; in mysqlnd_com_enable_ssl_create_command() local
1248 command = mnd_ecalloc(1, sizeof(struct st_mysqlnd_protocol_com_enable_ssl_command)); in mysqlnd_com_enable_ssl_create_command()
1249 if (command) { in mysqlnd_com_enable_ssl_create_command()
1250 command->context.conn = va_arg(args, MYSQLND_CONN_DATA *); in mysqlnd_com_enable_ssl_create_command()
1251 command->context.client_capabilities = va_arg(args, size_t); in mysqlnd_com_enable_ssl_create_command()
1252 command->context.server_capabilities = va_arg(args, size_t); in mysqlnd_com_enable_ssl_create_command()
1253 command->context.charset_no = va_arg(args, unsigned int); in mysqlnd_com_enable_ssl_create_command()
1255 command->parent.free_command = mysqlnd_com_no_params_free_command; in mysqlnd_com_enable_ssl_create_command()
1256 command->parent.run = mysqlnd_com_enable_ssl_run; in mysqlnd_com_enable_ssl_create_command()
1259 DBG_RETURN((struct st_mysqlnd_protocol_command *) command); in mysqlnd_com_enable_ssl_create_command()
1282 …struct st_mysqlnd_protocol_com_handshake_command * command = (struct st_mysqlnd_protocol_com_hands… in mysqlnd_com_handshake_run() local
1283 const char * user = command->context.user.s; in mysqlnd_com_handshake_run()
1285 const char * passwd = command->context.passwd.s; in mysqlnd_com_handshake_run()
1286 size_t passwd_len = command->context.passwd.l; in mysqlnd_com_handshake_run()
1288 const char * db = command->context.database.s; in mysqlnd_com_handshake_run()
1289 size_t db_len = command->context.database.l; in mysqlnd_com_handshake_run()
1291 size_t mysql_flags = command->context.client_flags; in mysqlnd_com_handshake_run()
1293 MYSQLND_CONN_DATA * conn = command->context.conn; in mysqlnd_com_handshake_run()
1363 struct st_mysqlnd_protocol_com_handshake_command * command; in mysqlnd_com_handshake_create_command() local
1365 command = mnd_ecalloc(1, sizeof(struct st_mysqlnd_protocol_com_handshake_command)); in mysqlnd_com_handshake_create_command()
1366 if (command) { in mysqlnd_com_handshake_create_command()
1367 command->context.conn = va_arg(args, MYSQLND_CONN_DATA *); in mysqlnd_com_handshake_create_command()
1368 command->context.user = *va_arg(args, const MYSQLND_CSTRING *); in mysqlnd_com_handshake_create_command()
1369 command->context.passwd = *va_arg(args, const MYSQLND_CSTRING *); in mysqlnd_com_handshake_create_command()
1370 command->context.database = *va_arg(args, const MYSQLND_CSTRING *); in mysqlnd_com_handshake_create_command()
1371 command->context.client_flags = va_arg(args, size_t); in mysqlnd_com_handshake_create_command()
1373 command->parent.free_command = mysqlnd_com_no_params_free_command; in mysqlnd_com_handshake_create_command()
1374 command->parent.run = mysqlnd_com_handshake_run; in mysqlnd_com_handshake_create_command()
1377 DBG_RETURN((struct st_mysqlnd_protocol_command *) command); in mysqlnd_com_handshake_create_command()
1385 mysqlnd_get_command(enum php_mysqlnd_server_command command, ...) in mysqlnd_get_command() argument
1391 va_start(args, command); in mysqlnd_get_command()
1392 switch (command) { in mysqlnd_get_command()