2015-04-24 4:42 GMT+03:00 Benjamin Eberlei <kont...@beberlei.de>:

> On Thu, Apr 23, 2015 at 3:45 PM, Arvids Godjuks <arvids.godj...@gmail.com>
> wrote:
>
> > PDO is everywhere. Doctrine? Based on PDO.
>
>
> You can use mysqli, oci8 or sqlsrv for example without problems in
> Doctrine.
>
> Exposing some of the internal api of PDO as php functions (SQL Parser) I
> would bet it is possible to reimplement PDO in PHP code using mysqli etc..
> as "drivers".
>
> I think we could discuss going that road as well and we could save
> ourselves maintaining some thousands of lines of C code.
>

May I question the sanity of the words written in this email? :D (it's a
joke).

The whole point of mysqlnd drivers and other improvements was to cut down
on data copying, improving performance and doing a lot of other stuff.
Moving PDO to a PHP implementation will kill it all: preformance will
suffer, memory usage will skyrocket, dealing with charsets - I don't even
wana pretend I understand how to deal with that part in a proper fasion.
Doesn't it require access to internal PHP api's to do a lot of what PDO and
other native drivers do?
Well, the Zephyr could pitch in here, MAYBE, depending on how good it
actually is and what it can do, but still, it feels more like a cruch to me.

Reply via email to