[spip-dev] Warnings dans ecrire/inc_index.php3

Bon ce coup ci je suis sobre :wink:

Version : 1.8b2, CVS à jour d'il y a qq minutes

j'ai des warnings dans inc_index.php3 :

<b>Warning</b>: ereg_replace(): REG_BADBR in <b>/Library/WebServer/Documents/spip/ecrire/inc_index.php3</b> on line <b>63</b><br />

J'ai remplacé la ligne 61 par :

  $____regexp = " ([A-Z][0-9A-Z]{1,".($min_long - 1)."}) ";
  spip_log($____regexp);
  $texte = ereg_replace($____regexp, ' \\1___ ', $texte);

pour voir ce qu'il se passait et effectivement, parfois $min_long vaut 1 :

Oct 01 19:09:07 127.0.0.1 (pid 391) -> indexation thread 224848,225078
Oct 01 19:09:07 127.0.0.1 (pid 391) ([A-Z][0-9A-Z]{1,2})
Oct 01 19:09:07 127.0.0.1 (pid 391) ([A-Z][0-9A-Z]{1,0})
Oct 01 19:09:07 127.0.0.1 (pid 391) ([A-Z][0-9A-Z]{1,2})
Oct 01 19:09:07 127.0.0.1 (pid 391) ([A-Z][0-9A-Z]{1,0})
Oct 01 19:09:07 127.0.0.1 (pid 391) ([A-Z][0-9A-Z]{1,2})

Cordialement

Version : 1.8b2, CVS à jour d'il y a qq minutes

j'ai des warnings dans inc_index.php3 :

<b>Warning</b>: ereg_replace(): REG_BADBR in
<b>/Library/WebServer/Documents/spip/ecrire/inc_index.php3</b> on line
<b>63</b><br />

J'ai remplacé la ligne 61 par :

        $____regexp = " ([A-Z][0-9A-Z]{1,".($min_long - 1)."}) ";
        spip_log($____regexp);
        $texte = ereg_replace($____regexp, ' \\1___ ', $texte);

pour voir ce qu'il se passait et effectivement, parfois $min_long vaut
1 :

Aïe, c'était l'indexation des forums, un oubli. Merci

-- Fil