woodtime / webgrind

Automatically exported from code.google.com/p/webgrind
Other
0 stars 0 forks source link

Autodetect xdebug.profiler_output_name and convert to valid regex #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Autodetecting will make for even easier installation and free you from updating 
the filename format 
in more than one place.

Get the name with `ini_get('xdebug.profiler_output_name');`  
Possible settings: http://xdebug.org/docs/all_settings#trace_output_name

Shouldn't be too hard.

Original issue reported on code.google.com by gugakf...@gmail.com on 18 Jun 2008 at 8:33

GoogleCodeExporter commented 8 years ago
Fixed in r98.
Also added autodetection of xdebug.profiler_output_dir

please verify

Original comment by gugakf...@gmail.com on 18 Jun 2008 at 8:50

GoogleCodeExporter commented 8 years ago
Had problems with the update initially. Turns the dir returned by 
sys_get_temp_dir was not writable by my php! 
So that was a problem :)

Updated webgrind to check if the directory is writable, if not it falls back on 
the xdebug output dir (as if the sys_get_temp_dir function did not exist).

Original comment by oett...@gmail.com on 21 Jun 2008 at 9:35