[spip-dev] 12160 : Boucle qui plante le compilateur

La boucle suivante :
<BOUCLE_Icra(MOTS)><link rel="meta" href="#URL_SITE_SPIP/labels.rdf" type="application/rdf+xml" title="ICRA labels" /></BOUCLE_Icra>

Donne : Parse error: syntax error, unexpected T_VARIABLE in D:\wwwrootDev\_mutualisation\spipsvn\ecrire\public\composer.php(66) : eval()'d code on line 29

Et le debug autour de la ligne 29 donne :

23 // RESULTATS
24 while ($Pile[$SP] = @sql_fetch($result,"")) {
25
26 $t0 .= (
27
28 // 23 signes
29 '<link rel="meta" href="' .
30
31 // #URL_SITE_SPIP
32 htmlspecialchars(sinon($GLOBALS['meta']['adresse_site'],'.')) .
33
34 // 62 signes
35 '/labels.rdf" type="application/rdf+xml" title="ICRA labels" />');
36 }

Testé sur la SVN sans plugin.

RealET a écrit :

La boucle suivante :
<BOUCLE_Icra(MOTS)><link rel="meta" href="#URL_SITE_SPIP/labels.rdf" type="application/rdf+xml" title="ICRA labels" /></BOUCLE_Icra>

Je confirme, mais je pense que l'erreur est un peu plus haut : il y a un 1 qui traine après calculer select :
     // REQUETE
19 $result = calculer_select($select, $from, $type, $where, $join, $groupby, $orderby, $limit, $having, $table, $id, $connect);1
20 $t0 = "";

Oups, réparé.

Committo,Ergo:Sum

* Committo,Ergo:sum tapuscrivait, le 23/07/2008 19:32:

La boucle suivante :
<BOUCLE_Icra(MOTS)><link rel="meta" href="#URL_SITE_SPIP/labels.rdf" type="application/rdf+xml" title="ICRA labels" /></BOUCLE_Icra>

Donne : Parse error:

Oups, réparé.

Merci !

* Matthieu Marcillaud tapuscrivait, le 23/07/2008 19:20:

RealET a écrit :

La boucle suivante :
<BOUCLE_Icra(MOTS)><link rel="meta" href="#URL_SITE_SPIP/labels.rdf" type="application/rdf+xml" title="ICRA labels" /></BOUCLE_Icra>

Je confirme, mais je pense que l'erreur est un peu plus haut : il y a un 1 qui traine après calculer select :
    // REQUETE
19 $result = calculer_select($select, $from, $type, $where, $join, $groupby, $orderby, $limit, $having, $table, $id, $connect);1
20 $t0 = "";

Bien vu !