Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32441 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49137 invoked by uid 1010); 25 Sep 2007 07:08:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 49122 invoked from network); 25 Sep 2007 07:08:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Sep 2007 07:08:05 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from [212.25.124.162] ([212.25.124.162:9985] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/96-22594-4D3B8F64 for ; Tue, 25 Sep 2007 03:08:05 -0400 Received: (qmail 22840 invoked from network); 25 Sep 2007 07:08:01 -0000 Received: from internal.zend.office (HELO thinkpad) (10.1.1.1) by internal.zend.office with SMTP; 25 Sep 2007 07:08:01 -0000 To: "'Alexandra S.'" Cc: Date: Tue, 25 Sep 2007 11:08:00 +0400 Message-ID: <000201c7ff42$cf33ee80$6e02a8c0@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal In-Reply-To: <46F6399D.4040406@zend.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 Subject: RE: [PHP-DEV] bug in odbc extension http://bugs.php.net/bug.php?id=40695 From: dmitry@zend.com ("Dmitry Stogov") References: <46F6399D.4040406@zend.com> Hi Alexandra, In general the patch looks fine. Is it possible to write an automatic test with proper --SKIPIF-- condition for this fix? Thanks. Dmitry. > -----Original Message----- > From: Alexandra S. [mailto:alexandra@zend.com] > Sent: Sunday, September 23, 2007 2:02 PM > To: internals@lists.php.net > Subject: [PHP-DEV] bug in odbc extension > http://bugs.php.net/bug.php?id=40695 > > > > Hi, > > I am attaching here a small patch for this bug. The original > error for > the reproduction script in this bug was: > > *Warning*: odbc_execute() [function.odbc-execute > ]: SQL error: > [Microsoft][ODBC > Microsoft Access Driver]COUNT field incorrect , SQL state > 07001 in SQLExecute in *C:\Program Files\Apache Software > Foundation\Apache2.2\htdocs\odbc2.php* on line *33 > > This is not the right error. since we did not check the > return codes from SQLDescribeParam php_odbc.php:1000 we did > not see that the real error is: > > **Warning*: odbc_execute() [function.odbc-execute > ]: SQL error: > [Microsoft][ODBC > Driver Manager] Driver does not support this function, SQL > state IM001 in hello - SQL_ERROR in *C:\Program Files\Apache Software > Foundation\Apache2.2\htdocs\odbc2.php* on line *33 > > Please review the patch > > Alexandra Shpindovsky > > >