Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16119 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51751 invoked by uid 1010); 27 Apr 2005 16:31:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 51719 invoked from network); 27 Apr 2005 16:31:48 -0000 Received: from unknown (HELO php.net) (127.0.0.1) by localhost with SMTP; 27 Apr 2005 16:31:48 -0000 X-Host-Fingerprint: 82.94.239.5 unknown Linux 2.5 (sometimes 2.4) (4) Received: from ([82.94.239.5:49521] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 1.2.12rc1 r(5476:5477)) with SMTP id 37/61-20173-56EBF624 for ; Wed, 27 Apr 2005 12:31:33 -0400 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j3RGY1si018949; Wed, 27 Apr 2005 18:34:01 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j3RGXx0B018939; Wed, 27 Apr 2005 18:33:59 +0200 Date: Wed, 27 Apr 2005 18:31:14 +0200 (CEST) X-X-Sender: derick@localhost To: Wez Furlong cc: Lukas Smith , "Thies C. Arntzen" , Marcus Boerger , internals@lists.php.net In-Reply-To: <4e89b42605042508153357f7fd@mail.gmail.com> Message-ID: References: <1383893714.20050331102838@marcus-boerger.de> <1e14419686962a473412d07a3192ba41@thieso.net> <4e89b4260504010525116632ff@mail.gmail.com> <424DB787.10900@php.net> <426CF39C.1040805@php.net> <4e89b42605042508153357f7fd@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jci-ict.nl Subject: Re: [PHP-DEV] PDO API (was: pdo: binding variables supplied to execute() is NotVeryUseful(tm)...) From: derick@php.net (Derick Rethans) On Mon, 25 Apr 2005, Wez Furlong wrote: > 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. But it's totally not what PHP does now. Everything is 0 based so why make it *harder* for users by requiring a 1-based index here? regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org