Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16077 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60904 invoked by uid 1010); 25 Apr 2005 15:15:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 60862 invoked from network); 25 Apr 2005 15:15:30 -0000 Received: from unknown (HELO gmail.com) (127.0.0.1) by localhost with SMTP; 25 Apr 2005 15:15:30 -0000 X-Host-Fingerprint: 64.233.184.203 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.203:24819] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity 1.2.12rc1 r(5476:5477)) with SMTP id 13/9A-22714-1990D624 for ; Mon, 25 Apr 2005 11:15:29 -0400 Received: by wproxy.gmail.com with SMTP id 57so1607868wri for ; Mon, 25 Apr 2005 08:15:25 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tkpzR66e1x0l8F7/CgEztooXv33Y0YhCuP0oTQQE30w9QYT3hu0PhM3oZT3OdKb+Wee/WhneAC//rUIoZRJpU25EWuNEHnCnHiM26c9BMk6LV7FYe2AioY7u2AhDd0sWF2dPTIiiFkC1GrXUMdtmX2U8pYEBwLIYyC4sCD7Hb0U= Received: by 10.54.5.46 with SMTP id 46mr1984455wre; Mon, 25 Apr 2005 08:15:25 -0700 (PDT) Received: by 10.54.77.4 with HTTP; Mon, 25 Apr 2005 08:15:24 -0700 (PDT) Message-ID: <4e89b42605042508153357f7fd@mail.gmail.com> Date: Mon, 25 Apr 2005 11:15:24 -0400 Reply-To: Wez Furlong To: Lukas Smith Cc: "Thies C. Arntzen" , Marcus Boerger , internals@lists.php.net In-Reply-To: <426CF39C.1040805@php.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1383893714.20050331102838@marcus-boerger.de> <1e14419686962a473412d07a3192ba41@thieso.net> <4e89b4260504010525116632ff@mail.gmail.com> <424DB787.10900@php.net> <426CF39C.1040805@php.net> Subject: Re: [PHP-DEV] PDO API (was: pdo: binding variables supplied to execute() is NotVeryUseful(tm)...) From: kingwez@gmail.com (Wez Furlong) On 4/25/05, Lukas Smith wrote: > I also noticed that bindParam() and bindColumn() are 1-indexed, which > will raise inconviniences with people using arrays for example to stored > the numeric indexes Passing an array with numeric indices to execute() expects 0 based indices, to cater for this case. Manually calling a bind function expects 1 based indices, as this is the convention for the majority of database APIs. > Beyond that rowCount() is more traditionally affectedRows() etc which > needlessly break with existing method names in both php core extensions > and PEAR packages. Look, PDO is new. It's not breaking anything. Stop claiming that it is breaking things; it doesn't touch your code; it doesn't change the external API of your code. It doesn't make MDB, PEAR DB or any other code change its names. It's just different. Deliberately. > How about sitting down together at php|tropics Sure. > (I didnt plan on going to > a'dam .. dunno about you Wez .. but if necessary I will travel to a'dam > for a day) That's a hell of a commute for me. > and simply going through each of the methods one by one. > Looking at what kind of methods names we currently are using for the > same or similar things in any of the current projects on php.net and > make any adjustments then? Maybe, but I don't see a compelling reason to change the names, or I would have done it already. =20 --Wez.