PHP with enable-debug

Problems with the Linux version of XAMPP, questions, comments, and anything related.

PHP with enable-debug

Postby erelsgl » 18. June 2009 12:27

I need to debug some PHP extension I wrote, and to do this I need to compile PHP with "--enable-debug".

The PHP that comes with XAMPP is compiled with "--disable-debug".

Is there a way to change the PHP used by XAMPP?

I tried changing the binary files in /opt/lampp/bin but it doesn't seem to work - Apache still uses the PHP with --disable-debug.
erelsgl
 
Posts: 7
Joined: 03. December 2006 10:00

Re: PHP with enable-debug

Postby Wiedmann » 18. June 2009 12:33

Is there a way to change the PHP used by XAMPP?

You must compile your own PHP.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: PHP with enable-debug

Postby erelsgl » 18. June 2009 12:53

I have my own PHP, but as I said, I can't make Apache use that version of PHP.

How can I tell Apache what PHP version to use?
erelsgl
 
Posts: 7
Joined: 03. December 2006 10:00

Re: PHP with enable-debug

Postby Wiedmann » 18. June 2009 13:19

I have my own PHP

But this PHP is not build for XAMPP?

I can't make Apache use that version of PHP.

If you build a PHP for XAMPP, Apache is automatically using this (new) PHP.


Well, if you have a working other PHP (in another location then /opt/lampp), you can (try to) use this in a CGI setup.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: PHP with enable-debug

Postby erelsgl » 18. June 2009 13:31

Wiedmann wrote:Well, if you have a working other PHP (in another location then /opt/lampp), you can (try to) use this in a CGI setup.

That seems like a better solution. How do I do this?
erelsgl
 
Posts: 7
Joined: 03. December 2006 10:00


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 4 guests