running php on vs2012

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

running php on vs2012

Postby s_nagul » January 2nd, 2013, 6:57 pm

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
s_nagul
 
Posts: 10
Joined: January 2nd, 2013, 6:53 pm

Re: running php on vs2012

Postby Miloslav Beno » January 2nd, 2013, 7:41 pm

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.
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: running php on vs2012

Postby s_nagul » January 2nd, 2013, 9:05 pm

Thank you very much.

It all works including xdebug.
s_nagul
 
Posts: 10
Joined: January 2nd, 2013, 6:53 pm

Re: running php on vs2012

Postby Miloslav Beno » January 2nd, 2013, 10:34 pm

Perfect! I'm glad it works.
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: running php on vs2012

Postby beans13 » June 11th, 2013, 10:07 pm

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.
beans13
 
Posts: 1
Joined: June 11th, 2013, 9:56 pm

Re: running php on vs2012

Postby codeowl » June 11th, 2013, 10:39 pm

Beans,

You may find something here that helps:

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

Regards,

Scott
codeowl
 
Posts: 51
Joined: February 10th, 2013, 10:05 am


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 23 guests

cron

User Control Panel

Login

Who is online

In total there are 23 users online :: 0 registered, 0 hidden and 23 guests (based on users active over the past 5 minutes)
Most users ever online was 297 on March 29th, 2024, 7:06 am

Users browsing this forum: No registered users and 23 guests