6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/18/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#10294] PCRE compilation failure in Horde_Ldap
*
Your Email Address
*
Spam protection
Enter the letters below:
.. ..__. __.. , ||_/ [__](__ \./ \__|| \| |.__) |
Comment
> While working with calendar permissions in Kronolith, I found that > once I set permissions on a calendar for a particular group, the > group disappeared from the permissions window, although the > permissions seemed to work correctly. I found the following errors > in the horde log: > > HORDE [kronolith] PHP ERROR: preg_split(): Compilation failed: > lookbehind assertion is not fixed length at offset 9 [pid 24322 on > line 292 of "/usr/share/pear/Horde/Ldap/Util.php > > It appears that my version of PHP does not like the formatting of > that regex. There were three instances of a regex like this used in > preg_split: > > /(?<=[^\\\\]),/ > > It appears to me that the purpose of this regex is to split the > string on commas, as long as the comma is not escaped by a preceding > backslash. I changed the three instances of this regex to a negative > lookbehind assertion, which my version of PHP seems to like better: > > /(?<!\\\\),/ > > I see other instances of this type of negative lookbehind assertion > in Util.php, and it seems to be working on my setup. I will attach a > patch to Util.php in a subsequent post. > > My server config: > CentOS 5.6 x86_64 > Apache 2.2.3 installed via yum > PHP 5.3.3 installed via yum > PCRE 6.6 installed via yum
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers