PHP Configuration & Code

XDebug Issues

Profiling fails to actually save anything

Whether you set xdebug.profiler_enable = 1 or xdebug.profiler_enable_trigger = 1 and use XDEBUG_PROFILE=1, it just doesn't save any profile information.

Solution: quotes.  Just get rid of all the quotes.  Here's my applicable settings from my php.ini file:

xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir = /tmp
xdebug.profiler_output_name = cachegrind.%s.%t.xt

Disabling magic_quotes_gpc

If the web host is using PHP as a CGI module, and .htaccess files are either unread or do not allow php_value settings, then the solution is to place magic_quotes_gpc = Off; in a php.ini file in the CGI directory where the php5 binary is located.


This website belongs to Christopher Jastram.