Alan Knowles
Posts: 390
Nickname: alank
Registered: Sep, 2004
|
Alan Knowles is Freelance Developer, works on PHP extensions and PEAR.
|
|
|
|
2c PDO - Why it should not be part of core PHP! 15
|
Posted: Oct 22, 2004 7:36 AM
|
|
1be4
Ever since PDO was proposed, there have been warm fuzzy feeling about it's iminent arrival. I hate to say, though I fear it could be the biggest mistake PHP ever makes.! (well I guess among the worse).
That's not a lightweight statement, and I'll fire of the disclaimers, before I go any further.
- I'm working on an alternative at present.
- I know the authors of PDO personally, and I probably owe them a drink for dissing the work.
- From what I've seen of the code in PDO, it's pretty damn good.
So what you may ask is so wrong with it?
The major issues I have with PDO are
This now leaves DBDO at a stage where most of the documenation is already done (as part of DataObjects).
In comparison, since PDO does not appear to have a history, It's first generation API has not had a chance to be picked apart by thousands of users. It lacks documenation (although that apparently will be fixed soon.)
I'm sure there are some valid reasons why DBDO could not stand up as the next generation Database library for PHP5, but I wonder seriously if those are less significant than PDO's.
- Win32 Support
After considerable work over the last month, this is pretty much solved. (Although I only bothered building mysql/postgres for win32, to continue the process should be pretty simple.). Given this work already, the amount of effort to make it 'enterprise ready', is pretty minimal now.
- Too many libraries?
Libgda has a midsized dependancy list, although this is not that major compared to libxml2, which is now part of the standard distribution. Currently DBDO needs - libgda (obviously)
- libglib
- libgmodule
- libgobject
- libgthread (maybe not necessary)
- libxml2 (used by PHP's xml extension already)
- libxlst (used by PHP's xlst extension already)
- iconv (used by PHP already)
Not sure if this blog will change the fact, but by not using libgda, I think PHP is missing a huge opportunity to stand on the shoulders of giants, and get a world class Database backend, with a limited effort.
20
Read: 2c PDO - Why it should not be part of core PHP! 15
|
|