« home   paste   Anonymous | Login | Signup for a new account 06-25-2019 03:20 CEST
* X »
GeSHi - Generic Syntax Highlighter Syntax Coloriser for PHP

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000074 [GeSHi] core crash always 05-09-06 07:49 05-17-06 20:18
Reporter BenBE View Status public  
Assigned To nigel
Priority normal Resolution open  
Status feedback   Product Version 1.1.1alpha4
Summary 0000074: Controlled crash on incomplete language file
Description Before calling an init function of a context a check should be made if this function actually exists.

Also GeSHi should output some kind of Stacktrace when a missing include function is detected thus you could more easily trace back calls.
Additional Information nigel:
I could do a function_exists check with a trigger_error/debug_backtrace debug thingy if the function doesn't exist I suppose... though it would have unnecessary performance implications for a production version of GeSHi and so should be disabled by default.

Hint: function_exists should do the trick too.
Attached Files

- Relationships

- Notes
05-14-06 21:35

Basic support added, however the backtrace is buggy.
05-14-06 22:13

If you need some hint's on the backtrace leave me a note ... I have some examples how to interpret the info there and also a working routine for a debug script of mine ...

I'll test it out ...
05-14-06 22:21

Nope, I'm familiar with backtrace usage. Libheart uses debug_backtrace to produce syntax-highlighted backtrace trees.

I just haven't been bothered to set it up properly for this yet :). I was doing the changes for 0000073 and needed it quickly, that's all.

I will get on to it later.
05-16-06 21:49

I've now improved it some more, tell me what you think.

- Issue History
Date Modified Username Field Change
05-09-06 07:49 BenBE New Issue
05-09-06 07:49 BenBE Status new => assigned
05-09-06 07:49 BenBE Assigned To  => nigel
05-14-06 21:35 nigel Note Added: 0000359
05-14-06 22:13 BenBE Note Added: 0000361
05-14-06 22:21 nigel Note Added: 0000363
05-16-06 21:49 nigel Note Added: 0000373
05-17-06 20:18 nigel Status assigned => feedback


Mantis 1.0.0rc2[^]
Copyright © 2000 - 2005 Mantis Group
37 total queries executed.
30 unique queries executed.
Powered by Mantis Bugtracker