Dotclear

Ticket #1044 (closed defect: fixed)

Opened 15 years ago

Last modified 15 years ago

La r224 de class.wiki2xhtml.php n'est pas compatible PHP<5.2.2

Reported by: bruno Owned by: xave
Priority: highest Milestone: 2.2
Component: module:clearbricks Version: dev
Severity: critical Keywords:
Cc:

Description

class.wiki2xhtml.php introduit le code suivant dans getLine

		else {
			$type = 'p';
			echo '/^\\\(?<line>(?:('.implode('|',$this->linetags).')).*)$/';exit;
			if (preg_match('/^\\\(?<line>(?:('.implode('|',$this->linetags).')).*)$/',$line,$cap)) {
				$line = $cap['line'];
			}
			$line = trim($line);
		}

Le support de la syntaxe ?<name> dans les regexp a été introduite en php 5.2.2, ce qui signifie que clearbricks n'est plus compatible avec les versions antérieurs de php.

Cf.  http://forum.dotclear.net/viewtopic.php?id=42791 (free par exemple est en php 5.1.3)

Attachments

wiki2xhtml.patch Download (508 bytes) - added by bruno 15 years ago.

Change History

Changed 15 years ago by bruno

comment:1 Changed 15 years ago by bruno

Patch compatible php < 5.2.2 ci-joint.

comment:2 Changed 15 years ago by xave

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

Fixed in Clearbricks Rev250

Note: See TracTickets for help on using tickets.

Sites map