Re: DB/mssql.php

From: Date: Thu, 27 Sep 2001 18:48:14 +0000
Subject: Re: DB/mssql.php
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-2085@lists.php.net to get a copy of this message
Whatch out: This is not true for the latest version (==RC && CVS). Frank (Author of mssql) changed the behaviour about 3 months ago. So recent PHP versions will only return keys and thus your patch would break the result. - Markus On Thu, Sep 27, 2001 at 10:54:42AM -0400, Chris Jackson wrote : > I've had to make a hack to my local DB/mssql.php in order to make the > results of fetchInto() match those of mysql and others. Currently, mssql > fetchInto() returns an array that includes number and field name keys. > mssql.php, fbsql.php, and pgsql.php use their respective *_fetch_row()'s > *_ASSOC switch to leave out the numbered keys. > > If this seems like the right thing to do, could someone with CVS access > update DB/mssql.php ? > > Index: php4/pear/DB/mssql.php > =================================================================== > RCS file: /repository/php4/pear/DB/mssql.php,v > retrieving revision 1.27 > diff -r1.27 mssql.php > 130a131,139 > > if($ar){ > > foreach($ar as $key=>$val) { > > if($x%2){ > > $tmp[$key] = $val; > > } > > $x++; > > } > > $ar = $tmp; > > } > > > -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: mfischer@guru.josefine.at PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend-

« previous php.pear.dev (#2085) next »