Page 1 of 1

running php on vs2012

PostPosted: January 2nd, 2013, 6:57 pm
by s_nagul
Hi,
I have WAMP installed on 64bit and VS2012 ultimate.
I have downloaded the plugin and installed it.
I have given the path for PHP interpreter to be of WAMP.
Everytime i run the php project, i am getting below error

Faulting application name: php.exe, version: 5.4.3.0, time stamp: 0x4fb15e42
Faulting module name: php5ts.dll, version: 5.4.3.0, time stamp: 0x4fb15f2c
Exception code: 0xc0000005
Fault offset: 0x0000000000119940
Faulting process ID: 0x1108
Faulting application start time: 0x01cde915a7273558
Faulting application path: C:\wamp\bin\php\php5.4.3\php.exe
Faulting module path: C:\wamp\bin\php\php5.4.3\php5ts.dll

Not sure what should be the configuration. I am new to PHP and want it to get work with VS2012.

Can you please help me setting this up.?


Shaik Nagul

Re: running php on vs2012

PostPosted: January 2nd, 2013, 7:41 pm
by Miloslav Beno
It looks like some kind of issue of wamp server. I've seen the same topic here on forum: http://forum.wampserver.com/read.php?2,58075,58545

What I guess it might be something to do that you have 64bit or possibly thread-safe version of php? It's hard to say, that's more question to WAMP forum.

But what you can do to get easily PHP working on your system is just to download these two:

- PHP 5.4 non-thread safe: http://windows.php.net/downloads/releases/php-5.4.10-nts-Win32-VC9-x86.zip
- for debugging XDebug for 5.4 non-thread safe: http://xdebug.org/files/php_xdebug-2.2.1-5.4-vc9-nts.dll it should go to ext directory of PHP

Then you chose it in Tools>Options>PHP Tools>Interpreters so in project properties you can select PHP 5.4 builtin.

Re: running php on vs2012

PostPosted: January 2nd, 2013, 9:05 pm
by s_nagul
Thank you very much.

It all works including xdebug.

Re: running php on vs2012

PostPosted: January 2nd, 2013, 10:34 pm
by Miloslav Beno
Perfect! I'm glad it works.

Re: running php on vs2012

PostPosted: June 11th, 2013, 10:07 pm
by beans13
I am using Visual Studio 2012 and WAMP, I have tried for the last 5 hours everything posted here and still I get "Breakpoint will not be hit, no symbols loaded..." I notice that the PHP.INI that WAMP is using is in a different directory than what PHP Tools loads when I set the PHP Path in VS Options. I have updated the PHP.INI file in the path to match what WAMP is loading but still no go.

Re: running php on vs2012

PostPosted: June 11th, 2013, 10:39 pm
by codeowl
Beans,

You may find something here that helps:

viewtopic.php?f=21&t=991&p=4574&hilit=WAMP#p4581

Regards,

Scott