Skip to content
This repository has been archived by the owner. 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
Member

@icinga-migration icinga-migration commented May 28, 2010

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
Member Author

@icinga-migration icinga-migration commented May 28, 2010

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
Member Author

@icinga-migration icinga-migration commented Jun 25, 2010

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
Member Author

@icinga-migration icinga-migration commented Oct 14, 2010

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
Member Author

@icinga-migration icinga-migration commented Sep 26, 2011

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
Member Author

@icinga-migration icinga-migration commented Aug 29, 2012

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

$ pcretest -C
@icinga-migration
Copy link
Member Author

@icinga-migration icinga-migration commented Feb 21, 2013

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
Member Author

@icinga-migration icinga-migration commented Aug 7, 2014

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.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.