]> granicus.if.org Git - php/commitdiff
MFH: set Sybase default APPNAME to ("PHP " PHP_VERSION)
authorUwe Schindler <thetaphi@php.net>
Fri, 16 Apr 2004 16:28:01 +0000 (16:28 +0000)
committerUwe Schindler <thetaphi@php.net>
Fri, 16 Apr 2004 16:28:01 +0000 (16:28 +0000)
ext/sybase/php_sybase_db.c
ext/sybase_ct/php_sybase_ct.c

index 9c0e57446f20d6dd06298bb87f35571830f067ac..2d90e611a15d7c39ff76ce2658451391e664740a 100644 (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 4.0",7);
+       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;
index d7aad553a2308a38328d35b59dfea4ba221c6f2a..f156d4afdd5efe9dc1ee4922c531628101dd2127 100644 (file)
@@ -427,7 +427,7 @@ PHP_RINIT_FUNCTION(sybase)
 {
        SybCtG(default_link)=-1;
        SybCtG(num_links) = SybCtG(num_persistent);
-       SybCtG(appname) = estrndup("PHP 4.0", 7);
+       SybCtG(appname) = estrndup("PHP " PHP_VERSION, sizeof("PHP " PHP_VERSION));
        SybCtG(server_message) = empty_string;
        return SUCCESS;
 }