After some discussion with Wez Furlong on pecl I added PDO support to
WikiDB. Php5 support seems to be very stable now.
Currently tested versions: win32/mysql-4.1.8/pdo-0.2/php-5.0.3 only.
sqlite and pgsql might need some minor fixes in the initializer and
upgrade methods.
PDO is much simplier and faster than ADODB or pear DB, but only works on
PHP5.
pdo-0.2.1 and newer is not really needed.
execute(args), quote and cached prepared statements are not needed for
phpwiki.
Porting for phpwiki needed 2 hours, mostly converting simple adodb or
pear db execute statements to the prepare/bindParam/execute syntax and
changing the fetch calls. Exactly as in perl's DBI.
Once I caught the transaction ability via try/catch it was easy to
workaround, a lot easier than in the php4 adodb/pear db backends.
I also have the pecl-based cvsclient backend sitting around here for
some months, but don't wan't to spend any time on it, unless someone
really needs it.
In the future I will work with oracle at my new company, so expect some
improvements there.
--
Reini Urban
http://phpwiki.org/
|