Skip to content

Commit

Permalink
Bug in PCRE 8.34 has been fixed in PHP 5.5.13 [Closes #25]
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jun 2, 2014
1 parent 4e0e017 commit e5cf6f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/texy.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
if (version_compare(PHP_VERSION, '5.2.0') < 0) {
throw new Exception('Texy requires PHP 5.2.0 or newer.');

} elseif (defined('PCRE_VERSION') && PCRE_VERSION == 8.34) {
} elseif (defined('PCRE_VERSION') && PCRE_VERSION == 8.34 && defined('PHP_VERSION_ID') && PHP_VERSION_ID < 50513) {
trigger_error('Texy: PCRE 8.34 is not supported due to bug #1451', E_USER_WARNING);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}


if (defined('PCRE_VERSION') && PCRE_VERSION == 8.34) {
if (defined('PCRE_VERSION') && PCRE_VERSION == 8.34 && defined('PHP_VERSION_ID') && PHP_VERSION_ID < 50513) {
Tester\Environment::skip('PCRE 8.34 is not supported due to bug #1451');
}

Expand Down

0 comments on commit e5cf6f4

Please sign in to comment.