开发者

PHP's PDO Source Code [closed]

开发者 https://www.devze.com 2022-12-17 05:38 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. 开发者_JAVA百科

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 7 years ago.

Improve this question

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?


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.


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

And the PDO classes are under /ext/pdo as Pekka 웃 pointed out.

In this way you don't need to download the full code, but read it online.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消