Page 1 of 1

PHP with enable-debug

PostPosted: 18. June 2009 12:27
by erelsgl
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.

Re: PHP with enable-debug

PostPosted: 18. June 2009 12:33
by Wiedmann
Is there a way to change the PHP used by XAMPP?

You must compile your own PHP.

Re: PHP with enable-debug

PostPosted: 18. June 2009 12:53
by erelsgl
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?

Re: PHP with enable-debug

PostPosted: 18. June 2009 13:19
by Wiedmann
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.

Re: PHP with enable-debug

PostPosted: 18. June 2009 13:31
by erelsgl
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?