I've got PHP installed from the repos on my Ubuntu 9.10 local machine. Where can I find the source code to the PDO classes?
+1
A:
As of PHP 5.1, PDO is part of the PHP core so it should be somewhere in there. My educated guess is
/ext/pdo
Before 5.1, it used to be a PECL package that is still available here. If you want to browse the source just for curiosity, it might do. If you need the current one, look in the core.
Pekka
2010-01-25 08:32:13
+1
A:
The PDO version of pgsql should come with the php5-pgsql package.
apt-get source php5-pgsql
will grab the source code used by the Ubuntu team to package the module for the repository.
In the source directory you're looking for something like php5-5.2.12.dfsg.1/ext/pdo_pgsql/
the precise path will of course vary depending on the version of php used.
Mike
2010-01-25 08:37:50