Is there a difference between compiling php with the parameter:
--with-[extension name]
as opposed to just compiling it as a shared module and including it that way? Is there any performance benefit? If not, why would you want to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Any performance benefit would be negligible. It’s simply another option for packaging up your PHP build.
On my Mac I use Marc Liyange’s build of PHP, which includes, among other things, built-in PostgreSQL support. It was built with the
--with-pdo-pgsqlflag. As a result it does not need to be distributed with the pdo-pgsql shared library.If he did not build with
--with-pdo-pgsql, he would have needed to distribute the pdo-pgsql shared library and include a directive inphp.inito load it. Sure, it’s just a minor difference, but if you know you are going to be using that functionality, it’s fine to build it into PHP itself.