diff options
author | Zeev Suraski <zeev@php.net> | 1999-08-14 10:04:04 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-08-14 10:04:04 +0000 |
commit | 55a6c270ddf42f9ebd5e2abf4deb6f9f6fc348e8 (patch) | |
tree | be4814f13473e2e7494918beab5eea7ea21d0446 /ext/mysql/mysql.c | |
parent | 7145d1a21ad480103c3069ca6d631a1589297601 (diff) | |
download | php-git-55a6c270ddf42f9ebd5e2abf4deb6f9f6fc348e8.tar.gz |
Fix thread unsafe version
Diffstat (limited to 'ext/mysql/mysql.c')
-rw-r--r-- | ext/mysql/mysql.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/mysql/mysql.c b/ext/mysql/mysql.c index 5367f878b5..5b2982f1fe 100644 --- a/ext/mysql/mysql.c +++ b/ext/mysql/mysql.c @@ -271,7 +271,7 @@ static PHP_INI_DISP(display_link_numbers) PHP_INI_BEGIN() STD_PHP_INI_BOOLEAN("mysql.allow_persistent", "1", PHP_INI_SYSTEM, OnUpdateInt, allow_persistent, php_mysql_globals, mysql_globals) STD_PHP_INI_ENTRY_EX("mysql.max_persistent", "-1", PHP_INI_SYSTEM, OnUpdateInt, max_persistent, php_mysql_globals, mysql_globals, display_link_numbers) - STD_PHP_INI_ENTRY_EX("mysql.max_links", "-1", PHP_INI_SYSTEM, OnUpdateInt, max_links, php_mysql_globals, mysql_globals, display_link_numbers) + STD_PHP_INI_ENTRY_EX("mysql.max_links", "-1", PHP_INI_SYSTEM, OnUpdateInt, max_links, php_mysql_globals, mysql_globals, display_link_numbers) STD_PHP_INI_ENTRY("mysql.default_host", NULL, PHP_INI_ALL, OnUpdateString, default_host, php_mysql_globals, mysql_globals) STD_PHP_INI_ENTRY("mysql.default_user", NULL, PHP_INI_ALL, OnUpdateString, default_user, php_mysql_globals, mysql_globals) STD_PHP_INI_ENTRY("mysql.default_password", NULL, PHP_INI_ALL, OnUpdateString, default_password, php_mysql_globals, mysql_globals) @@ -337,9 +337,9 @@ PHP_MINFO_FUNCTION(mysql) php_printf("<table border=5 width=\"600\">"); php_info_print_table_header(2, "Key", "Value"); - sprintf(buf, "%d", MySG(num_persistent)); + sprintf(buf, "%ld", MySG(num_persistent)); php_info_print_table_row(2, "Active Persistent Links", buf); - sprintf(buf, "%d", MySG(num_links)); + sprintf(buf, "%ld", MySG(num_links)); php_info_print_table_row(2, "Active Links", buf); php_info_print_table_row(2, "Client API version", mysql_get_client_info()); #if !(WIN32|WINNT) |