[Tickets #10294] PCRE compilation failure in Horde_Ldap

bugs at horde.org bugs at horde.org
Thu Jun 30 16:45:11 UTC 2011


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/10294
------------------------------------------------------------------------------
  Ticket             | 10294
  Created By         | steti at monmouth.com
  Summary            | PCRE compilation failure in Horde_Ldap
  Queue              | Horde Framework Packages
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


steti at monmouth.com (2011-06-30 16:45) wrote:

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






More information about the bugs mailing list