Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
ext /
mysqlnd /
Delete
Unzip
Name
Size
Permission
Date
Action
.libs
[ DIR ]
drwxr-xr-x
2024-03-12 14:32
CREDITS
70
B
-rw-rw-r--
2022-10-31 11:36
config-win.h
3.08
KB
-rw-rw-r--
2022-10-31 11:36
config.w32
1.42
KB
-rw-rw-r--
2022-10-31 11:36
config9.m4
2.08
KB
-rw-rw-r--
2022-10-31 11:36
mysql_float_to_double.h
1.98
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd.h
18.72
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_alloc.c
22.7
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_alloc.h
4.71
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_alloc.lo
342
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_alloc.o
195.19
KB
-rw-r--r--
2024-03-12 14:32
mysqlnd_auth.c
45.43
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_auth.h
4.08
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_auth.lo
339
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_auth.o
227.69
KB
-rw-r--r--
2024-03-12 14:32
mysqlnd_block_alloc.c
4.38
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_block_alloc.h
1.56
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_block_alloc.lo
360
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_block_alloc.o
153.95
KB
-rw-r--r--
2024-03-12 14:32
mysqlnd_charset.c
37.83
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_charset.h
2.25
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_charset.lo
348
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_charset.o
209.7
KB
-rw-r--r--
2024-03-12 14:32
mysqlnd_commands.c
25.48
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_commands.h
1.32
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_commands.lo
351
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_commands.o
181.81
KB
-rw-r--r--
2024-03-12 14:32
mysqlnd_connection.c
79.98
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_connection.h
3.17
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_connection.lo
357
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_connection.o
331.89
KB
-rw-r--r--
2024-03-12 14:32
mysqlnd_debug.c
23.46
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_debug.h
9.83
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_debug.lo
342
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_debug.o
188.41
KB
-rw-r--r--
2024-03-12 14:32
mysqlnd_driver.c
10.55
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_driver.lo
345
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_driver.o
171.83
KB
-rw-r--r--
2024-03-12 14:32
mysqlnd_enum_n_def.h
20.66
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_ext_plugin.c
12.61
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_ext_plugin.h
8.13
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_ext_plugin.lo
357
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_ext_plugin.o
166.9
KB
-rw-r--r--
2024-03-12 14:32
mysqlnd_libmysql_compat.h
7.42
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_loaddata.c
7.18
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_loaddata.lo
351
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_loaddata.o
162.5
KB
-rw-r--r--
2024-03-12 14:32
mysqlnd_plugin.c
5.47
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_plugin.h
1.44
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_plugin.lo
345
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_plugin.o
152.71
KB
-rw-r--r--
2024-03-12 14:32
mysqlnd_portability.h
15.23
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_priv.h
2.29
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_protocol_frame_codec.c
19.19
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_protocol_frame_codec.h
1.59
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_protocol_frame_codec.lo
387
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_protocol_frame_codec.o
177.68
KB
-rw-r--r--
2024-03-12 14:32
mysqlnd_ps.c
69.48
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_ps.h
2.24
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_ps.lo
333
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_ps.o
253.15
KB
-rw-r--r--
2024-03-12 14:32
mysqlnd_ps_codec.c
31.78
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_ps_codec.lo
351
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_ps_codec.o
206.84
KB
-rw-r--r--
2024-03-12 14:32
mysqlnd_read_buffer.c
2.67
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_read_buffer.h
1.35
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_read_buffer.lo
360
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_read_buffer.o
84.73
KB
-rw-r--r--
2024-03-12 14:32
mysqlnd_result.c
66.36
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_result.h
1.84
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_result.lo
345
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_result.o
256.44
KB
-rw-r--r--
2024-03-12 14:32
mysqlnd_result_meta.c
10.53
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_result_meta.h
1.65
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_result_meta.lo
360
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_result_meta.o
167.88
KB
-rw-r--r--
2024-03-12 14:32
mysqlnd_reverse_api.c
3.04
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_reverse_api.h
1.83
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_reverse_api.lo
360
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_reverse_api.o
149.34
KB
-rw-r--r--
2024-03-12 14:32
mysqlnd_statistics.c
11.79
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_statistics.h
5
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_statistics.lo
357
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_statistics.o
161.57
KB
-rw-r--r--
2024-03-12 14:32
mysqlnd_structs.h
64.03
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_vio.c
24.73
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_vio.h
1.54
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_vio.lo
336
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_vio.o
203.3
KB
-rw-r--r--
2024-03-12 14:32
mysqlnd_wireprotocol.c
90.43
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_wireprotocol.h
9.95
KB
-rw-rw-r--
2022-10-31 11:36
mysqlnd_wireprotocol.lo
363
B
-rw-r--r--
2024-03-12 14:32
mysqlnd_wireprotocol.o
309.74
KB
-rw-r--r--
2024-03-12 14:32
php_mysqlnd.c
10.73
KB
-rw-rw-r--
2022-10-31 11:36
php_mysqlnd.h
1.34
KB
-rw-rw-r--
2022-10-31 11:36
php_mysqlnd.lo
336
B
-rw-r--r--
2024-03-12 14:32
php_mysqlnd.o
176.19
KB
-rw-r--r--
2024-03-12 14:32
Save
Rename
/* +----------------------------------------------------------------------+ | PHP Version 7 | +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | | http://www.php.net/license/3_01.txt | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: Andrey Hristov <andrey@php.net> | | Ulf Wendel <uw@php.net> | +----------------------------------------------------------------------+ */ #include "php.h" #include "mysqlnd.h" #include "mysqlnd_vio.h" #include "mysqlnd_protocol_frame_codec.h" #include "mysqlnd_wireprotocol.h" #include "mysqlnd_connection.h" #include "mysqlnd_ps.h" #include "mysqlnd_plugin.h" #include "mysqlnd_priv.h" #include "mysqlnd_statistics.h" #include "mysqlnd_debug.h" #include "mysqlnd_reverse_api.h" #include "mysqlnd_ext_plugin.h" static zend_bool mysqlnd_library_initted = FALSE; static struct st_mysqlnd_plugin_core mysqlnd_plugin_core = { { MYSQLND_PLUGIN_API_VERSION, "mysqlnd", MYSQLND_VERSION_ID, PHP_MYSQLND_VERSION, "PHP License 3.01", "Andrey Hristov <andrey@php.net>, Ulf Wendel <uw@php.net>, Georg Richter <georg@php.net>", { NULL, /* will be filled later */ mysqlnd_stats_values_names, }, { NULL /* plugin shutdown */ } } }; /* {{{ mysqlnd_library_end */ PHPAPI void mysqlnd_library_end(void) { if (mysqlnd_library_initted == TRUE) { mysqlnd_plugin_subsystem_end(); mysqlnd_stats_end(mysqlnd_global_stats, 1); mysqlnd_global_stats = NULL; mysqlnd_library_initted = FALSE; mysqlnd_reverse_api_end(); } } /* }}} */ /* {{{ mysqlnd_library_init */ PHPAPI void mysqlnd_library_init(void) { if (mysqlnd_library_initted == FALSE) { mysqlnd_library_initted = TRUE; mysqlnd_conn_set_methods(&MYSQLND_CLASS_METHOD_TABLE_NAME(mysqlnd_conn)); mysqlnd_conn_data_set_methods(&MYSQLND_CLASS_METHOD_TABLE_NAME(mysqlnd_conn_data)); _mysqlnd_init_ps_subsystem(); /* Should be calloc, as mnd_calloc will reference LOCK_access*/ mysqlnd_stats_init(&mysqlnd_global_stats, STAT_LAST, 1); mysqlnd_plugin_subsystem_init(); { mysqlnd_plugin_core.plugin_header.plugin_stats.values = mysqlnd_global_stats; mysqlnd_plugin_register_ex((struct st_mysqlnd_plugin_header *) &mysqlnd_plugin_core); } #if defined(MYSQLND_DBG_ENABLED) && MYSQLND_DBG_ENABLED == 1 mysqlnd_example_plugin_register(); #endif mysqlnd_debug_trace_plugin_register(); mysqlnd_register_builtin_authentication_plugins(); mysqlnd_reverse_api_init(); } } /* }}} */ /* {{{ mysqlnd_object_factory::get_connection */ static MYSQLND * MYSQLND_METHOD(mysqlnd_object_factory, get_connection)(MYSQLND_CLASS_METHODS_TYPE(mysqlnd_object_factory) *factory, const zend_bool persistent) { const size_t alloc_size_ret = sizeof(MYSQLND) + mysqlnd_plugin_count() * sizeof(void *); const size_t alloc_size_ret_data = sizeof(MYSQLND_CONN_DATA) + mysqlnd_plugin_count() * sizeof(void *); MYSQLND * new_object; MYSQLND_CONN_DATA * data; DBG_ENTER("mysqlnd_driver::get_connection"); DBG_INF_FMT("persistent=%u", persistent); new_object = mnd_pecalloc(1, alloc_size_ret, persistent); if (!new_object) { DBG_RETURN(NULL); } new_object->data = mnd_pecalloc(1, alloc_size_ret_data, persistent); if (!new_object->data) { mnd_pefree(new_object, persistent); DBG_RETURN(NULL); } new_object->persistent = persistent; new_object->m = mysqlnd_conn_get_methods(); data = new_object->data; if (FAIL == mysqlnd_error_info_init(&data->error_info_impl, persistent)) { new_object->m->dtor(new_object); DBG_RETURN(NULL); } data->error_info = &data->error_info_impl; data->options = &(data->options_impl); mysqlnd_upsert_status_init(&data->upsert_status_impl); data->upsert_status = &(data->upsert_status_impl); UPSERT_STATUS_SET_AFFECTED_ROWS_TO_ERROR(data->upsert_status); data->persistent = persistent; data->m = mysqlnd_conn_data_get_methods(); data->object_factory = *factory; mysqlnd_connection_state_init(&data->state); data->m->get_reference(data); mysqlnd_stats_init(&data->stats, STAT_LAST, persistent); data->protocol_frame_codec = mysqlnd_pfc_init(persistent, factory, data->stats, data->error_info); data->vio = mysqlnd_vio_init(persistent, factory, data->stats, data->error_info); data->payload_decoder_factory = mysqlnd_protocol_payload_decoder_factory_init(data, persistent); data->command = mysqlnd_command_get_methods(); if (!data->protocol_frame_codec || !data->vio || !data->payload_decoder_factory || !data->command) { new_object->m->dtor(new_object); DBG_RETURN(NULL); } DBG_RETURN(new_object); } /* }}} */ /* {{{ mysqlnd_object_factory::clone_connection_object */ static MYSQLND * MYSQLND_METHOD(mysqlnd_object_factory, clone_connection_object)(MYSQLND * to_be_cloned) { const size_t alloc_size_ret = sizeof(MYSQLND) + mysqlnd_plugin_count() * sizeof(void *); MYSQLND * new_object; DBG_ENTER("mysqlnd_driver::clone_connection_object"); DBG_INF_FMT("persistent=%u", to_be_cloned->persistent); if (!to_be_cloned || !to_be_cloned->data) { DBG_RETURN(NULL); } new_object = mnd_pecalloc(1, alloc_size_ret, to_be_cloned->persistent); if (!new_object) { DBG_RETURN(NULL); } new_object->persistent = to_be_cloned->persistent; new_object->m = to_be_cloned->m; new_object->data = to_be_cloned->data->m->get_reference(to_be_cloned->data); if (!new_object->data) { new_object->m->dtor(new_object); new_object = NULL; } DBG_RETURN(new_object); } /* }}} */ /* {{{ mysqlnd_object_factory::get_prepared_statement */ static MYSQLND_STMT * MYSQLND_METHOD(mysqlnd_object_factory, get_prepared_statement)(MYSQLND_CONN_DATA * const conn) { const size_t alloc_size = sizeof(MYSQLND_STMT) + mysqlnd_plugin_count() * sizeof(void *); MYSQLND_STMT * ret = mnd_ecalloc(1, alloc_size); MYSQLND_STMT_DATA * stmt = NULL; DBG_ENTER("mysqlnd_object_factory::get_prepared_statement"); do { if (!ret) { break; } ret->m = mysqlnd_stmt_get_methods(); stmt = ret->data = mnd_ecalloc(1, sizeof(MYSQLND_STMT_DATA)); DBG_INF_FMT("stmt=%p", stmt); if (!stmt) { break; } if (FAIL == mysqlnd_error_info_init(&stmt->error_info_impl, 0)) { break; } stmt->error_info = &stmt->error_info_impl; mysqlnd_upsert_status_init(&stmt->upsert_status_impl); stmt->upsert_status = &(stmt->upsert_status_impl); stmt->state = MYSQLND_STMT_INITTED; stmt->execute_cmd_buffer.length = 4096; stmt->execute_cmd_buffer.buffer = mnd_emalloc(stmt->execute_cmd_buffer.length); if (!stmt->execute_cmd_buffer.buffer) { break; } stmt->prefetch_rows = MYSQLND_DEFAULT_PREFETCH_ROWS; /* Mark that we reference the connection, thus it won't be be destructed till there is open statements. The last statement or normal query result will close it then. */ stmt->conn = conn->m->get_reference(conn); DBG_RETURN(ret); } while (0); SET_OOM_ERROR(conn->error_info); if (ret) { ret->m->dtor(ret, TRUE); ret = NULL; } DBG_RETURN(NULL); } /* }}} */ /* {{{ mysqlnd_object_factory::get_pfc */ static MYSQLND_PFC * MYSQLND_METHOD(mysqlnd_object_factory, get_pfc)(const zend_bool persistent, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * error_info) { const size_t pfc_alloc_size = ZEND_MM_ALIGNED_SIZE(sizeof(MYSQLND_PFC) + mysqlnd_plugin_count() * sizeof(void *)); const size_t pfc_data_alloc_size = sizeof(MYSQLND_PFC_DATA) + mysqlnd_plugin_count() * sizeof(void *); MYSQLND_PFC * pfc = mnd_pecalloc(1, pfc_alloc_size + pfc_data_alloc_size, persistent); DBG_ENTER("mysqlnd_object_factory::get_pfc"); DBG_INF_FMT("persistent=%u", persistent); if (pfc) { pfc->data = (MYSQLND_PFC_DATA*)((char*)pfc + pfc_alloc_size); pfc->persistent = pfc->data->persistent = persistent; pfc->data->m = *mysqlnd_pfc_get_methods(); if (PASS != pfc->data->m.init(pfc, stats, error_info)) { pfc->data->m.dtor(pfc, stats, error_info); pfc = NULL; } } DBG_RETURN(pfc); } /* }}} */ /* {{{ mysqlnd_object_factory::get_vio */ static MYSQLND_VIO * MYSQLND_METHOD(mysqlnd_object_factory, get_vio)(const zend_bool persistent, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * error_info) { const size_t vio_alloc_size = ZEND_MM_ALIGNED_SIZE(sizeof(MYSQLND_VIO) + mysqlnd_plugin_count() * sizeof(void *)); const size_t vio_data_alloc_size = sizeof(MYSQLND_VIO_DATA) + mysqlnd_plugin_count() * sizeof(void *); MYSQLND_VIO * vio = mnd_pecalloc(1, vio_alloc_size + vio_data_alloc_size, persistent); DBG_ENTER("mysqlnd_object_factory::get_vio"); DBG_INF_FMT("persistent=%u", persistent); if (vio) { vio->data = (MYSQLND_VIO_DATA*)((char*)vio + vio_alloc_size); vio->persistent = vio->data->persistent = persistent; vio->data->m = *mysqlnd_vio_get_methods(); if (PASS != vio->data->m.init(vio, stats, error_info)) { vio->data->m.dtor(vio, stats, error_info); vio = NULL; } } DBG_RETURN(vio); } /* }}} */ /* {{{ mysqlnd_object_factory::get_protocol_payload_decoder_factory */ static MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY * MYSQLND_METHOD(mysqlnd_object_factory, get_protocol_payload_decoder_factory)(MYSQLND_CONN_DATA * conn, const zend_bool persistent) { const size_t alloc_size = sizeof(MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY) + mysqlnd_plugin_count() * sizeof(void *); MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY *ret = mnd_pecalloc(1, alloc_size, persistent); DBG_ENTER("mysqlnd_object_factory::get_protocol_payload_decoder_factory"); DBG_INF_FMT("persistent=%u", persistent); if (ret) { ret->persistent = persistent; ret->conn = conn; ret->m = MYSQLND_CLASS_METHOD_TABLE_NAME(mysqlnd_protocol_payload_decoder_factory); } DBG_RETURN(ret); } /* }}} */ PHPAPI MYSQLND_CLASS_METHODS_START(mysqlnd_object_factory) MYSQLND_METHOD(mysqlnd_object_factory, get_connection), MYSQLND_METHOD(mysqlnd_object_factory, clone_connection_object), MYSQLND_METHOD(mysqlnd_object_factory, get_prepared_statement), MYSQLND_METHOD(mysqlnd_object_factory, get_pfc), MYSQLND_METHOD(mysqlnd_object_factory, get_vio), MYSQLND_METHOD(mysqlnd_object_factory, get_protocol_payload_decoder_factory) MYSQLND_CLASS_METHODS_END;