In response to Wez Furlong’s call to test PDO, I decided to spend part of my day yesterday poking around at PDO. I have 5.0.3 installed and kinda want to stay with the 5.0 series for now, so I figured I try to build PDO against 5.0.4 (according to Wez, 5.0.3 wouldn’t work).
I couldn’t get it to build. I was following Wez’s directions (which I think were posted as a result of me emailing the pecl-dev list asking for help). However, instead of building SQLite, I was try MySQL- should work, right? And if it doesn’t work, we need to fix it, right? Well, I couldn’t get it to work after several hours and several emails back and forth with Wez.
Giving up, I decided to just build SQLite, which eventually succeeded, but only after I nuked the whole source directory and started from scratch. By this point, though, I didn’t have any time to actually test PDO (the point of this whole exercise).
So, the moral of this story? Don’t try to build PDO against 5.0 on Mac OS X. Apparently, some have been successful with 5.1.
Also, we need to improve Mac OS X build support for PHP stuff. I know that in many ways OS X is different that Linux and FreeBSD, but I know there are a lot of web developers out there using OS X. Maybe I’ll see what I can do to improve the situation- I just bought George Schlossnagle’s book, Advanced PHP Programming, mostly for the section on writing PHP modules.