Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57828 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39895 invoked from network); 13 Feb 2012 16:39:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Feb 2012 16:39:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 213.123.26.184 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 213.123.26.184 c2beaomr06.btconnect.com Received: from [213.123.26.184] ([213.123.26.184:17797] helo=mail.btconnect.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/D0-34738-1CC393F4 for ; Mon, 13 Feb 2012 11:39:30 -0500 Received: from host81-138-11-136.in-addr.btopenworld.com (EHLO _10.0.0.4_) ([81.138.11.136]) by c2beaomr06.btconnect.com with ESMTP id GLK68641; Mon, 13 Feb 2012 16:39:26 +0000 (GMT) Message-ID: <4F393CBD.4000907@lsces.co.uk> Date: Mon, 13 Feb 2012 16:39:25 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20111220 Firefox/9.0.1 SeaMonkey/2.6.1 MIME-Version: 1.0 To: PHP Developers Mailing List References: <1329148807.2621.785.camel@guybrush> In-Reply-To: <1329148807.2621.785.camel@guybrush> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Mirapoint-IP-Reputation: reputation=Fair-1, source=Queried, refid=tid=0001.0A0B0301.4F393CBD.006D, actions=TAG X-Junkmail-Premium-Raw: score=7/50, refid=2.7.2:2012.2.13.155414:17:7.586, ip=81.138.11.136, rules=__MOZILLA_MSGID, __HAS_MSGID, __SANE_MSGID, __USER_AGENT, __MIME_VERSION, __TO_MALFORMED_2, __PHISH_SPEAR_SUBJECT, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __SUBJ_ALPHA_END, __CT, __CT_TEXT_PLAIN, __CTE, __ANY_URI, __URI_NO_MAILTO, __CP_URI_IN_BODY, __STOCK_PHRASE_7, BODYTEXTP_SIZE_3000_LESS, BODY_SIZE_1600_1699, __MIME_TEXT_ONLY, RDNS_GENERIC_POOLED, BODY_SIZE_5000_LESS, RDNS_SUSP_GENERIC, RDNS_SUSP, BODY_SIZE_2000_LESS, BODY_SIZE_7000_LESS X-Junkmail-Status: score=10/50, host=c2beaomr06.btconnect.com X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A0B0201.4F393CBE.0138:SCFSTAT14830815,ss=1,re=-4.000,fgs=0, ip=0.0.0.0, so=2011-07-25 19:15:43, dmn=2011-05-27 18:58:46, mode=multiengine X-Junkmail-IWF: false Subject: Re: [PHP-DEV] Warning: PDOStatement after the output From: lester@lsces.co.uk (Lester Caine) Johannes Schlüter wrote: > On Mon, 2012-02-13 at 11:37 +0200, marius adrian popa wrote: >> > I have this weird bug where the warning is printed after the query is >> > executed and printed >> > >> > http://gcov.php.net/viewer.php?version=PHP_5_4&func=tests&file=ext%2Fpdo_firebird%2Ftests%2Fbug_43130.phpt >> > >> > Result is correct , warning is correct only the order is out of order > Is it? - The output is > string(5) "test1" > which is not expected. The test assumes that :id-value is not > interpreted as a place holder, but interpreted as :id -value so the > placeholder's name is :id, only. > I don't know about firebird ... does it handle the named parameters > itself and interpret :id-value as name? Then that's where the difference > comes from. Firebird only has positional parameters, so any linkage to names is external to the query or the return.There are a few areas at PDO expects responces that a number of the engines do not actually provide, and emulating them in extra code does seem to be a little excessive? I've just proted piwik to work with the generic Firebird driver, when the core code has only been designed for pdo_mysql. Not to difficult once I'd extended the Zend Firebird driver, and quite happily simply supplying arrays of parameters to the query execution. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php