Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15965 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4240 invoked by uid 1010); 14 Apr 2005 21:19:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 4225 invoked from network); 14 Apr 2005 21:19:42 -0000 Received: from unknown (HELO eyou.com) (127.0.0.1) by localhost with SMTP; 14 Apr 2005 21:19:42 -0000 X-Host-Fingerprint: 195.197.172.116 gw02.mail.saunalahti.fi Linux 2.4/2.6 Received: from ([195.197.172.116:33653] helo=gw02.mail.saunalahti.fi) by pb1.pair.com (ecelerity 1.2.12rc1 r(5476:5477)) with SMTP id 3C/70-45330-E6EDE524 for ; Thu, 14 Apr 2005 17:19:42 -0400 Received: from nest.netphobia.fi (YZCLXVIII.dsl.saunalahti.fi [85.76.34.69]) by gw02.mail.saunalahti.fi (Postfix) with ESMTP id A6D18BC8B6; Fri, 15 Apr 2005 00:19:38 +0300 (EEST) Received: from nest.netphobia.fi (nest.netphobia.fi [127.0.0.1]) by nest.netphobia.fi (8.13.1/8.13.1) with ESMTP id j3ELJfJs026341; Fri, 15 Apr 2005 00:19:41 +0300 Received: from localhost (jani@localhost) by nest.netphobia.fi (8.13.1/8.13.1/Submit) with ESMTP id j3ELJeuZ026338; Fri, 15 Apr 2005 00:19:41 +0300 X-Authentication-Warning: nest.netphobia.fi: jani owned process doing -bs Date: Fri, 15 Apr 2005 00:19:40 +0300 (EEST) Reply-To: Jani Taskinen To: John Higgins Cc: internals@lists.php.net In-Reply-To: <20050411194129.765.qmail@lists.php.net> Message-ID: References: <20050411194129.765.qmail@lists.php.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [PHP-DEV] Update for Birdstep RDM Server / RAIMA Velocis support in PHP 4 & 5 From: sniper@iki.fi (Jani Taskinen) I have committed a little bit modified version of this patch in all branches. Basically I just replaced your two 'uname' calls by using $host_alias and used $SHLIB_SUFFIX_NAME instead of .so / .sl. --Jani On Mon, 11 Apr 2005, John Higgins wrote: > I would like to submit an update for the UODBC module in PHP 4 & 5. The > changes update PHP's UODBC module to work with the latest versions of > Birdstep's RDM Server DBMS, while maintaining compatibility with previously > supported versions. The update was necessary due to a change in Birdstep's > library names as well as new functionality in RDM Server. The changes > affect two files, and are detailed in the diff output below. As I would > like to update the latest versions of PHP 4 as well as PHP 5, I have pasted > the diff output for version 5 into this post, and will reply to this post > with the diff for PHP 4. Please let me know if I can do anything to make > this easier... > > - John > > PHP 5 diff > ********************************************************** > Index: ext/odbc/config.m4 > =================================================================== > RCS file: /repository/php-src/ext/odbc/config.m4,v > retrieving revision 1.72 > diff -u -r1.72 config.m4 > --- ext/odbc/config.m4 10 Apr 2005 19:23:59 -0000 1.72 > +++ ext/odbc/config.m4 11 Apr 2005 17:47:11 -0000 > @@ -339,6 +339,22 @@ > [ > PHP_WITH_SHARED > > + ac_birdstep_uname_s=`uname -s 2>/dev/null` > + ac_birdstep_uname_p=`uname -p 2>/dev/null` > + case $ac_birdstep_uname_s in > + AIX) AC_DEFINE(AIX,1,[ ]);; > + HP-UX) AC_DEFINE(HPUX,1,[ ]);; > + Linux) AC_DEFINE(LINUX,1,[ ]);; > + QNX) AC_DEFINE(NEUTRINO,1,[ ]);; > + SunOS) > + if test "$ac_birdstep_uname_p" == "i386"; then > + AC_DEFINE(ISOLARIS,1,[ ]) > + elif test "$ac_birdstep_uname_p" == "sparc"; then > + AC_DEFINE(SOLARIS,1,[ ]) > + fi;; > + UnixWare) AC_DEFINE(UNIXWARE,1,[ ]);; > + esac > + > if test "$withval" != "no"; then > if test "$withval" = "yes"; then > ODBC_INCDIR=/usr/local/birdstep/include > @@ -350,7 +366,12 @@ > ODBC_INCLUDE=-I$ODBC_INCDIR > ODBC_TYPE=birdstep > ODBC_LFLAGS=-L$ODBC_LIBDIR > - > ODBC_LIBS="-lCadm -lCdict -lCenc -lCrdm -lCrpc -lCrdbc -lCrm -lCuapi -lutil" > + if test -e "$ODBC_LIBDIR/libCrdbc32.so" -o -e > "$ODBC_LIBDIR/libCrdbc32.sl"; then > + > ODBC_LIBS="-lCrdbc32 -lCadm32 -lCncp32 -lCrm32 -lCsql32 -lCdict32 -lCrdm32 > -lCrpc32 -lutil" > + elif test -e "$ODBC_LIBDIR/libCrdbc.so" -o -e > "$ODBC_LIBDIR/libCrdbc.sl"; then > + > ODBC_LIBS="-lCrdbc -lCadm -lCncp -lCrm -lCsql -lCdict -lCrdm -lCrpc -lutil" > + fi > + > AC_DEFINE(HAVE_BIRDSTEP,1,[ ]) > > AC_MSG_RESULT(yes) > Index: ext/odbc/php_odbc.h > =================================================================== > RCS file: /repository/php-src/ext/odbc/php_odbc.h,v > retrieving revision 1.58 > diff -u -r1.58 php_odbc.h > --- ext/odbc/php_odbc.h 8 Jan 2004 17:32:34 -0000 1.58 > +++ ext/odbc/php_odbc.h 11 Apr 2005 17:47:11 -0000 > @@ -33,8 +33,8 @@ > extern zend_module_entry odbc_module_entry; > #define odbc_module_ptr &odbc_module_entry > > -#if defined(HAVE_DBMAKER) || defined(PHP_WIN32) || defined(HAVE_IBMDB2) || > defined(HAVE_UNIXODBC) > -# define PHP_ODBC_HAVE_FETCH_HASH 1 > +#if defined(HAVE_DBMAKER) || defined(PHP_WIN32) || defined(HAVE_IBMDB2) || > defined(HAVE_UNIXODBC) || defined(HAVE_BIRDSTEP) > +#define PHP_ODBC_HAVE_FETCH_HASH 1 > #endif > > /* user functions */ >