Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16032 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48810 invoked by uid 1010); 19 Apr 2005 13:54:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 48795 invoked from network); 19 Apr 2005 13:54:02 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 19 Apr 2005 13:54:02 -0000 X-Host-Fingerprint: 130.119.248.68 mail16.ca.com Windows 2000 SP4, XP SP1 Received: from ([130.119.248.68:36515] helo=mail16.ca.com) by pb1.pair.com (ecelerity 1.2.12rc1 r(5476:5477)) with SMTP id 44/C2-45122-77D05624 for ; Tue, 19 Apr 2005 09:54:00 -0400 Received: from ukslms22.ca.com ([130.119.9.26]) by mail16.ca.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 19 Apr 2005 14:53:55 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 19 Apr 2005 14:53:55 +0100 Message-ID: <08237065FA027340B731E57099097854039A9C58@ukslms22.ca.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] Ingres error reporting functions Thread-Index: AcVE5zhA6dYyBtorQKaTaBuvHG9OlQ== To: X-OriginalArrivalTime: 19 Apr 2005 13:53:55.0100 (UTC) FILETIME=[39FDDDC0:01C544E7] Subject: [PATCH] Ingres error reporting functions From: Grant.Croker@ca.com ("Croker, Grant") Hi, I would like to submit the following patch to PHP: http://www.ingres.co.uk/php/head/ingres_error_reporting.diff It includes 3 new functions for reporting errors; ingres_error(), ingres_error_text() and ingres_error_sqlstate(). Also included is the ability to suppress E_WARNING messages that happen when a database error is detected. This requires the following to be added to php.ini under the section titled "[Ingres II]": ; Report database warnings or not ingres.report_db_warnings =3D 0 When trying to test this functionality on Linux I ran across a problem/difference in the way Windows and UNIX/Linux based autoconf generates the Makefile. It would appear that with UNIX it expects its configuration files be located in a directory name equivalent to the first parameter to PHP_NEW_EXTENSION in config.m4. For most extensions I guess this not a problem since the directory and extension name match up. For the Ingres extension they don't. After the fix for bug 32333/32359 the extension name changed from ingres_ii to ingres to allow the extension to build on Windows. The fix was needed as the Windows build process uses the extname in 'ARG_WITH(extname,...)' to work out what the extension is called. This had the unforeseen affect of breaking the UNIX/Linux configure process.=20 I guess extension names and their relative 'ext' dir should match? Can the directory ext/ingres_ii be moved to ext/ingres? Regards, grant -- Grant Croker Software Engineer, Ingres Development mailto:grant.croker at ca.com