Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9260 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27593 invoked by uid 1010); 16 Apr 2004 15:33:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 27569 invoked from network); 16 Apr 2004 15:33:35 -0000 Received: from unknown (HELO mailout11.sul.t-online.com) (194.25.134.85) by pb1.pair.com with SMTP; 16 Apr 2004 15:33:35 -0000 Received: from fwd06.aul.t-online.de by mailout11.sul.t-online.com with smtp id 1BEVLS-0006N3-01; Fri, 16 Apr 2004 17:33:34 +0200 Received: from vega.php.net (ZqPmi8ZAYe+vhySxE1Rk21Z-QVlcvaPdiY7BBE7oRUtawq+-3WnTQD@[217.229.55.92]) by fmrl06.sul.t-online.com with esmtp id 1BEVLC-2IxENk0; Fri, 16 Apr 2004 17:33:18 +0200 Message-ID: <6.1.0.6.0.20040416173004.040bab90@127.0.0.1> X-Sender: (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.1.0.6 Date: Fri, 16 Apr 2004 17:33:20 +0200 To: internals@lists.php.net Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=====================_110310367==_" X-Seen: false X-ID: ZqPmi8ZAYe+vhySxE1Rk21Z-QVlcvaPdiY7BBE7oRUtawq+-3WnTQD@t-dialin.net Subject: [PATCH] sybase "appname" contains static version number From: thetaphi@php.net (Uwe Schindler) --=====================_110310367==_ Content-Type: text/plain; charset="us-ascii"; format=flowed Appended a patch to the sybase extensions, that set the default value for the sybase appname to ("PHP " PHP_VERSION). I have seen that in PHP 4.3.6 where this variable is statically set to "PHP 4.0" (!!!). In the tree of PHP5 it is a little bit better when this is set to "PHP 5", but the perfect soultion sould be the patch. If somebody wants a fixed sybase "appname", he can configure it in php.ini or give it to the sybase_(p)connect function. ----- Uwe Schindler thetaphi@php.net - http://www.php.net NSAPI SAPI developer Erlangen, Germany --=====================_110310367==_ Content-Type: text/plain; charset="us-ascii" Content-Disposition: attachment; filename="sybase.patch.txt" Index: ext/sybase_ct/php_sybase_ct.c =================================================================== RCS file: /repository/php-src/ext/sybase_ct/php_sybase_ct.c,v retrieving revision 1.92 diff -u -r1.92 php_sybase_ct.c --- ext/sybase_ct/php_sybase_ct.c 15 Feb 2004 10:53:45 -0000 1.92 +++ ext/sybase_ct/php_sybase_ct.c 16 Apr 2004 15:27:31 -0000 @@ -427,7 +427,7 @@ { 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; } Index: ext/sybase/php_sybase_db.c =================================================================== RCS file: /repository/php-src/ext/sybase/php_sybase_db.c,v retrieving revision 1.60 diff -u -r1.60 php_sybase_db.c --- ext/sybase/php_sybase_db.c 28 Jan 2004 01:43:39 -0000 1.60 +++ ext/sybase/php_sybase_db.c 16 Apr 2004 15:27:49 -0000 @@ -281,7 +281,7 @@ { 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; --=====================_110310367==_--