Using drupal 5 RC1,
Windows XP.
apache 2.2.3,
php 5.2.0 (w/ eaccelerator 0.9.5),
mysql 5.0.22.

warning: preg_match() [function.preg-match]: Compilation failed: unmatched parentheses at offset 16 in ...\modules\version2\version2.module on line 467.

Just enabled the module and went to admin/releases. I get the above error repeated 9 times.

Thanks,
Phil

Comments

douggreen’s picture

Priority: Critical » Normal

CVS expands the $Name in the preg_match() which messes it up. I fixed this earlier today, but the project packaging system doesn't pick this up immediately. Please make sure that you have the latest CVS head version 1.16.

Line 467 should say:

    if (preg_match('/\$'.'Name:\s?([^\$]*)\$/', $version, $match)) {
filiptc’s picture

Status: Active » Fixed

Downloading CVS version2.module v.1.17 fixed the issue.

Thanks,
Phil

douggreen’s picture

Status: Fixed » Closed (fixed)