developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 14 years ago

Closed 14 years ago

#356 closed bug (fixed)

jExceptionHandler - les trace ne fonctionnent pas

Reported by: sylvain261 Owned by: laurentj
Priority: normal Milestone: Jelix 1.0 RC1
Component: jelix:core Version: 1.0 beta 3.1
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed:
Hosting Provider: Php version:

Description

Y a, semble t'il, eu un mauvais copié collé entre la gestion d'erreur et la gestion des exceptions. Dans jExceptionHandler on devrait avoir qqch du genre :

    if(strpos($action , 'TRACE') !== false){
	$arr = $exception->getTrace();
	$messageLog.="\ttrace:";

et non pas

    if(strpos($action , 'TRACE') !== false){
	$arr = debug_backtrace();
	$messageLog.="\ttrace:";
        array_shift($arr);

Car sinon les traces des exceptions sont tjs vides (il semble que debug_backTrace() renvoit un tableau vide quand on est dans un handler d'exception)

Change History (2)

comment:1 Changed 14 years ago by laurentj

  • Milestone set to Jelix 1.0 RC1
  • Status changed from new to assigned

comment:2 Changed 14 years ago by laurentj

  • Resolution set to fixed
  • Severity changed from major to normal
  • Status changed from assigned to closed

Correction appliquée dans le trunk. Merci !

Note: See TracTickets for help on using tickets.