set Sybase default APPNAME to ("PHP " PHP_VERSION)

This commit is contained in:
Uwe Schindler 2004-04-16 16:27:19 +00:00
parent 1fb0de4a6d
commit fb25210072
2 changed files with 2 additions and 2 deletions

View File

@ -281,7 +281,7 @@ PHP_RINIT_FUNCTION(sybase)
{
php_sybase_module.default_link=-1;
php_sybase_module.num_links = php_sybase_module.num_persistent;
php_sybase_module.appname = estrndup("PHP 5", 5);
php_sybase_module.appname = estrndup("PHP " PHP_VERSION, sizeof("PHP " PHP_VERSION));
php_sybase_module.server_message = empty_string;
php_sybase_module.min_error_severity = php_sybase_module.cfg_min_error_severity;
php_sybase_module.min_message_severity = php_sybase_module.cfg_min_message_severity;

View File

@ -427,7 +427,7 @@ PHP_RINIT_FUNCTION(sybase)
{
SybCtG(default_link)=-1;
SybCtG(num_links) = SybCtG(num_persistent);
SybCtG(appname) = estrndup("PHP 5", 5);
SybCtG(appname) = estrndup("PHP " PHP_VERSION, sizeof("PHP " PHP_VERSION));
SybCtG(server_message) = empty_string;
return SUCCESS;
}