CleverCloud / Quercus

Java implementation of PHP, by Caucho's Technology, Clever Cloud Development Branch
http://github.com/CleverCloud/Quercus/wiki
GNU General Public License v2.0
50 stars 12 forks source link

Dokuwiki ne marche pas sur Quercus (master) #41

Open ahoy-jon opened 12 years ago

ahoy-jon commented 12 years ago

Un problème avec les regexps.

src\main\webapp\dokuwiki\inc\parser\lexer.php:401: Warning: com.caucho.quercus.lib.regexp.IllegalRegexpException: '-' is an unknown (? code /([ \t]*\n {2,}[\-\*])|([ \t]*\n\t{1,}[\-\*])|(\n (?![\*\-]))|(\n\t(?![\*\-]))|(~~NOTOC~~)|(~~NOCACHE~~)|([ \t]*={2,}[^\n]+={2,}[ \t]*(?=\n))|(\n\^)|(\n\|)|(\*\*(?=.*\*\*))|(\/\/(?=[^\x00]*[^:]))|(__(?=.*__))|(\x27\x27(?=.*\x27\x27))|((?=.*<\/sub>))|((?=.*<\/sup>))|((?=.*<\/del>))|(\x5C{2}(?:[ \t]|(?=\n)))|(\x28\x28(?=.*\x29\x29))|(~~INFO:\w+~~)|(\n[ \t]*-{4,}[ \t]*(?=\n))|((?=.*<\/nowiki>))|(%%(?=.*%%))|((?=.*<\/php>))|((?=.*<\/PHP>))|((?=.*<\/html>))|((?=.*<\/HTML>))|(<\ code="">))|(<\ file="">))|(\n>{1,})|((?<=\W|^)8-\)(?=\W|$)|(?<=\W|^)8-O(?=\W|$)|(?<=\W|^)8-o(?=\W|$)|(?<=\W|^)\:-\((?=\W|$)|(?<=\W|^)\:-\)(?=\W|$)|(?<=\W|^)\=\)(?=\W|$)|(?<=\W|^)\:-\/(?=\W|$)|(?<=\W|^)\:-\\(?=\W|$)|(?<=\W|^)\:-\?(?=\W|$)|(?<=\W|^)\:-D(?=\W|$)|(?<=\W|^)\:-P(?=\W|$)|(?<=\W|^)\:-o(?=\W|$)|(?<=\W|^)\:-O(?=\W|$)|(?<=\W|^)\:-x(?=\W|$)|(?<=\W|^)\:-X(?=\W|$)|(?<=\W|^)\:-\|(?=\W|$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[\w\/\#~:.?+=&%@!\-\[\].:?\-;,]+?(?=[.:?\-;,]*[^\w\/\#~:.?+=&%@!\-\[\].:?\-;,]))|(\b(?i)ftp?(?-i)\.[\w.:?\-;,]+?\.[\w.:?\-;,]+?[\w\/\#~:.?+=&%@!\-\[\].:?\-;,]+?(?=[.:?\-;,]*[^\w\/\#~:.?+=&%@!\-\[\].:?\-;,]))|(<[0-9a-zA-Z!#$%&'*+\/=?^_`{|}~-]+(?:\.[0-9a-zA-Z!#$%&'*+\/=?^_`{|}~-]+)*@(?i:[0-9a-z][0-9a-z-]*\.)+(?i:[a-z]{2,4}|museum|travel)>)|(\\\\\w+?(?:\\[\w$]+)+)|((?:^[ \t]*)?\n)/ [preg_match] <\><\>
Keruspe commented 12 years ago

Si tu peux me pondre un minimal testcase qui reproduit le problème, ça m'intéresserait ;)

ahoy-jon commented 12 years ago

C'est possible, tu as un template pour ce genre de tests ?

Sinon, je pense faire un artefact Maven qui dépend de Quercus, et faire un test selenium.

Keruspe commented 12 years ago

On a pas vraiment de système de tests pour l'instant :/ Je pensais plus à un bête fichier php le plus petit possible que je puisse test en local en cli pour voir le blem