Subject Current firebird_pdo status?
Author Matthias Hanft
Hello,

I'm using PHP 5.2.12 (5.3 isn't available yet for Gentoo Linux).
Accessing Firebird using the "ibase_..." functions works very well.
But now, I installed the "pdo_firebird" extension (version 0.2)
manually by using "pecl". I did this because I have to write
the same PHP code for two different companies - company #1 uses
Firebird, company #2 uses mySQL. So I thought it would simplify
my PHP code using PDO. (No, I can't persuade company #2 to use
Firebird as well.)

But things like "bindValue", "bindParam", or "execute" (with PDO's
"PDOStatement" class) just don't work (giving strange error messages)
or even cause a segmentation fault by Apache.

Seems "the PDO_Firebird driver needs A LOT of love" from
http://www.alberton.info/php_pdo_firebird_status.html is still true?

Will pdo_firebird work flawlessly in PHP 5.3? Or would you discourage
from using pdo_firebird generally? Of course, it's no problem to write
PHP code as

switch ($dbType) {
case FIREBIRD: ibase_connect...
case MYSQL: mysql_connect...
}

it's just more code and more IFs and SWITCHs, but if I could see a
working PDO implementation appear on the horizon, I'd prefer PDO
because it's less code and more elegant.

Thank you,

-Matt


[Non-text portions of this message have been removed]