I have managed to get PDO with MySQL support.
I installed the latest Marc Liyanage Beta from here:
http://www.entropy.ch/phpbb2/viewtopic.php?t=2945&sid=b820e5e830c0f1d8712f31b28b 832dc0
sudo mv /usr/local/php5 ~/Desktop/php5.old
curl -O
http://www2.entropy.ch/download/php5-5.2.5-6-beta.tar.gz
tar -xzf php5-*-beta.tar.gz
sudo mv php5 /usr/local/
sudo chown -R root:admin /usr/local/php5
sudo ln -sf /usr/local/php5/entropy-php.conf /etc/apache2/other/+entropy-php.conf
then comment the existing php module in httpd.conf
#LoadModule php5_module libexec/apache2/libphp5.so
the entropy build adds a conf to 'other' if you install it as above, that loads the module from the /usr/local/php5 directory
(I did it this way so future upgrades are easier and the built in php remains untouched)
enable the php.ini in /usr/local/php5/lib/
edit the msyql socket connections there.
mysql.default_socket = /var/mysql/mysql.sock
(because I'd previously followed these instructions:
http://www.procata.com/blog/archives/2007/10/28/working-with-php-5-in-mac-os-x-1 05/)
restart Apache
*watch out for short php tags* - they're disabled in this php build.
the final workaround I had to do for PDO to work properly was to include the socket in the connection string:
new PDO("mysql:host=localhost;dbname=test;unix
socket=/path/to/socket/found_in_php.ini_ormy.cnf",'username','password');
I now have a working PHP installation with support for PDO and a bunch of other libraries on OSX 10.5.3 on a Mac Pro (2x2.66 Dual-Core)
Hope this helps someone (and I didn't leave out any steps)