# Warning: PDOStatement after the output

- Thread: https://externals.io/message/57822
- Original archive: https://news-web.php.net/php.internals/57822
- Started by marius adrian popa on 2012-02-13T09:37:35+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #57822 — marius adrian popa — 2012-02-13T09:37:35+00:00

URL: https://externals.io/message/57822#57822

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

ps: I will ask on pdo list too

---

## #57827 — johannes@schlueters.de — 2012-02-13T16:00:07+00:00

URL: https://externals.io/message/57822#57827 · In reply to: #57822

> 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.

johannes

---

## #57828 — Lester Caine — 2012-02-13T16:39:25+00:00

URL: https://externals.io/message/57822#57828 · In reply to: #57827

Johannes Schlüter wrote:
> 
> > […]
> 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
