mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
ported mysql and mysqlnd
This commit is contained in:
parent
1d8bc9a274
commit
bdbf47df18
20 changed files with 164 additions and 162 deletions
|
@ -138,11 +138,11 @@ PHP_MINFO_FUNCTION(mysqlnd)
|
|||
#else
|
||||
"not supported");
|
||||
#endif
|
||||
snprintf(buf, sizeof(buf), "%ld", MYSQLND_G(net_cmd_buffer_size));
|
||||
snprintf(buf, sizeof(buf), "%pd", MYSQLND_G(net_cmd_buffer_size));
|
||||
php_info_print_table_row(2, "Command buffer size", buf);
|
||||
snprintf(buf, sizeof(buf), "%ld", MYSQLND_G(net_read_buffer_size));
|
||||
snprintf(buf, sizeof(buf), "%pd", MYSQLND_G(net_read_buffer_size));
|
||||
php_info_print_table_row(2, "Read buffer size", buf);
|
||||
snprintf(buf, sizeof(buf), "%ld", MYSQLND_G(net_read_timeout));
|
||||
snprintf(buf, sizeof(buf), "%pd", MYSQLND_G(net_read_timeout));
|
||||
php_info_print_table_row(2, "Read timeout", buf);
|
||||
php_info_print_table_row(2, "Collecting statistics", MYSQLND_G(collect_statistics)? "Yes":"No");
|
||||
php_info_print_table_row(2, "Collecting memory statistics", MYSQLND_G(collect_memory_statistics)? "Yes":"No");
|
||||
|
@ -206,7 +206,9 @@ static PHP_GINIT_FUNCTION(mysqlnd)
|
|||
*/
|
||||
static PHP_INI_MH(OnUpdateNetCmdBufferSize)
|
||||
{
|
||||
long long_value = atol(new_value);
|
||||
php_int_t long_value;
|
||||
|
||||
ZEND_ATOI(long_value, new_value);
|
||||
if (long_value < MYSQLND_NET_CMD_BUFFER_MIN_SIZE) {
|
||||
return FAILURE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue