PHP PDO Source Code

I have installed PHP from the repositories on my local Ubuntu 9.10 computer. Where can I find the source code for PDO classes?

+6
php pdo
source share
3 answers

Starting with PHP 5.1, PDO is part of the PHP core, so it should be somewhere in there . My educated guess

/ext/pdo

Prior to version 5.1, it was a PECL package, which is still available here . If you want to view the source just for the sake of curiosity, he can do it. If you need the current, look at the kernel.

+8
source share

PHP code can be found on GitHub: https://github.com/php/php-src

And the PDO classes are under /ext/pdo as Pekka ์›ƒ noted.

Thus, you do not need to download the full code, but read it online.

+7
source share

The pgsql PDO version must ship with the php5-pgsql package.

apt-get source php5-pgsql capture the source code used by the Ubuntu team to package the module for the repository.

In the source directory you are looking for something like php5-5.2.12.dfsg.1/ext/pdo_pgsql/ , the exact path, of course, will vary depending on the version of php used.

+1
source share

All Articles