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 12 years ago

Closed 12 years ago

#761 closed bug (fixed)

jErrorHandler ne gere pas les E_DEPRECATED

Reported by: rahal Owned by: laurentj
Priority: normal Milestone: Jelix 1.0.7
Component: jelix:core Version: 1.0.1
Severity: minor Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version: 5.2.7RC6-dev ( compilée des sources php )

Description

L'appel d'une fonction dépréciée génère un code Erreur E_DEPRECATED non correctement traité le gestionnaire d'erreur .

=> generation d'une notice suivi de warning..

PHP Notice: Undefined offset: 8192 in //jelix/core/jErrorHandler.lib.php on line 79

[03-Dec-2008 16:40:46] PHP Warning: Cannot modify header information - headers already sent by (output started at //jelix/core/jErrorHandler.lib.php:79) in //jelix/core/jErrorHandler.lib.php on line 108 [03-Dec-2008 16:40:46] PHP Warning: Cannot modify header information - headers already sent by (output started at //jelix/core/jErrorHandler.lib.php:79) in //jelix/core/jErrorHandler.lib.php on line 109

Je pense qu'il suffit d'ajouter E_DEPRECATED => 'deprecated' dans le tableau $codeString dans jErrorHandler , et eventuellement ajouter un test lors du formatage du message d'erreur ( '%typeerror%'=>$codeString[$errno] ) dans le cas ou d'autres types d'erreurs non declarées surviennent .

Change History (2)

comment:1 Changed 12 years ago by laurentj

  • Milestone set to Jelix 1.0.7
  • Severity changed from normal to minor
  • Status changed from new to assigned

comment:2 Changed 12 years ago by laurentj

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in the trunk and 1.0.x branch. r1203.

Note: See TracTickets for help on using tickets.