Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

[dev.icinga.com #466] rhel 5.5 pcre 6.6 problem: preg_match Compilation failed: unrecognized character #72

Closed
icinga-migration opened this issue May 28, 2010 · 7 comments
Labels

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/466

Created by mfriedrich on 2010-05-28 15:30:24 +00:00

Assignee: (none)
Status: Closed (closed on 2011-09-26 15:05:38 +00:00)
Target Version: (none)
Last Update: 2013-02-21 20:25:41 +00:00 (in Redmine)


if you encounter this error on a rhel 5.5 box with your own built php > 5.2.2
make sure you upgrade pcre 6.6 to at least 7.6 (current ist 8.0.2).

  • compile/build pcre with utf and unicode
  • compile/build php with pcre-regex

default rhel pcre does not support unicode either. but this is not related to the warning below.

[Tue May 25 19:01:12 2010] [error] [client ....] PHP Warning:  preg_match() [function.preg-match]: Compilation failed: unrecognized character after (? at offset 2 in /usr/share/icinga-web/lib/agavi/src/util/AgaviDecimalFormatter.class.php on line 715, referer: https://hostname/icinga-web/

this error relates to agavi 1.0.3 and directly straight forward into preg_match (which is provided by pcre).

testscript for the extracted pattern (by writing a debugfile to disk and hacking agavi code currently)

just leaving that as feedback over here. just for php builds on rhel/centos.


Relations:

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2010-05-28 17:47:40 +00:00

ok a bit more testing on that. on a rhel 5.5 with built php 5.2.12 but pcre 6.6 it simply fails again with the warning, and login isn't possible.

so i would recommend to adapt the requirements for agavi/icinga-web then to:

= php 5.2.3
= pcre 7.6

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2010-06-25 08:48:11 +00:00

http://www.jasonlitka.com/category/yum-repo-news/

  • pcre in newer version
  • compiled php 5.2.x based on this version (it's mandatory that php will be compiled ith the header files of newer pcre!)

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2010-10-14 07:57:36 +00:00

  • Subject changed from rhel 5.5: preg_match Compilation failed: unrecognized character to rhel 5.5 pcre 6.6 problem: preg_match Compilation failed: unrecognized character
  • Priority changed from Low to Normal

@icinga-migration
Copy link
Author

Updated by jmosshammer on 2011-09-26 15:05:38 +00:00

  • Status changed from Feedback to Closed

This is now in the docs

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2012-08-29 09:00:14 +00:00

$ pcretest -C

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2013-02-21 20:25:41 +00:00

https://bugzilla.redhat.com/show\_bug.cgi?id=457064

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-08-07 12:07:58 +00:00

  • Relates set to 6872

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant