April 14, 2012

How do I get PDO to work on WAMP with PHP 5.4?

Question by JREAM

How do I get PDO to work on WAMP with PHP 5.4?
I have installed PHP 5.4 inside of WAMP (2.2d 32-bit). My PHP.ini file has it enabled (Inside of the 5.4 phpForApache.ini file). I downloaded the latest PHP 5.4 Thread Safe for windows.

But I can’t get the PDO extension to work. Here is my php info file:

Configure Command   cscript /nologo configure.js "--enable-snapshot-build" 
"--disable-isapi" "--enable-debug-pack" "--disable-nsapi" "--without-mssql" 
"--without-pdo-mssql" "--without-pi3web" 
"--with-pdo-oci=C:php-    sdkoracleinstantclient10sdk,shared" 
"--with-oci8=C:php-sdkoracleinstantclient10sdk,shared" "--with-oci8-11g=C:php-        sdkoracleinstantclient11sdk,shared" 
"--enable-object-out-dir=../obj/" "--enable-com-dotnet" 
"--with-mcrypt=static" "--disable-static-analyze" "--with-pgo"


PDO drivers no value

Answer by Starx

Article: http://www.bluefrog.ca/2012/03/adding-php-5-4-0-final-support-to-wampserver/

Though you’ll now have support for 5.4, you’ll be missing some fancy extensions and features that you may have gotten used to on other
versions of PHP. These may include:

Xdebug
APC
PDO drivers
Curl
etc…

I will suggest installing Apache 2, Mysql, PHP separately. And its working just fine.

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!