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

index ff9af1d58e5f90b0609d1c5b90396d1c474d296b..2cd9032750450936f0fb789cf625d4d0f993e63d 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 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;
index 3f866e854b66549e2a8227255970f5ad19506207..5081c194fc5adb0d4883434c7c412e2116157854 100644 (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;
 }