[Tickets #9431] pref hook : Infinite Loop
bugs at horde.org
bugs at horde.org
Mon Dec 6 15:41:26 UTC 2010
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/9431
------------------------------------------------------------------------------
Ticket | 9431
Created By | rsalmon at mbpgroup.com
Summary | pref hook : Infinite Loop
Queue | IMP
Version | Git master
Type | Bug
State | Unconfirmed
Priority | 1. Low
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
rsalmon at mbpgroup.com (2010-12-06 10:41) wrote:
with the following setting and hook.php configure using the provided exemple
$_prefs['search_sources'] = array(
'value' => '',
'locked' => true,
'hook' => true
);
When I try to login I get (indefinitely) in /tmp/horde.log :
2010-12-06T17:20:54+01:00 DEBUG: HORDE [imp] Hook prefs_init in
application imp called. [pid 28875 on line 1688 of
"/var/www/html/horde/libs/Horde.php"]
2010-12-06T17:20:54+01:00 DEBUG: HORDE [turba] SQL (0,0004s)
SELECT COUNT(*) FROM horde_perms WHERE perm_name =
'turba:sources:localldap' [pid 28875 on line 754 of
"/var/www/html/horde/libs/Horde/Db/Adapter/Base.php"]
2010-12-06T17:20:54+01:00 DEBUG: HORDE [imp] SQL (0,0007s)
SELECT pref_scope, pref_name, pref_value FROM horde_prefs WHERE
pref_uid = 'rsalmon' AND pref_scope = 'imp' [pid 28875 on
line 754 of "/var/www/html/horde/libs/Horde/Db/Adapter/Base.php"]
2010-12-06T17:20:54+01:00 DEBUG: HORDE [imp] Hook prefs_init in
application imp called. [pid 28875 on line 1688 of
"/var/www/html/horde/libs/Horde.php"]
2010-12-06T17:20:54+01:00 DEBUG: HORDE [turba] SQL (0,0004s)
SELECT COUNT(*) FROM horde_perms WHERE perm_name =
'turba:sources:localldap' [pid 28875 on line 754 of
"/var/www/html/horde/libs/Horde/Db/Adapter/Base.php"]
2010-12-06T17:20:54+01:00 DEBUG: HORDE [imp] SQL (0,0008s)
...
From what I could track down :
Registry.php, function popApp(), php seams to be running code up to
line 1241 :
$this->_onAppSwitch($app).
Nothing to do with this ticket, but there is a typo in
framework/Ldap/lib/Horde/Ldap/Entry.php
--- Entry.php.old 2010-12-06 17:30:46.000000000 +0100
+++ Entry.php 2010-12-06 17:30:51.000000000 +0100
@@ -289 +289 @@
- for ($attr = @ldap_first_attribute($this->_link,
$this->_entry, $ber);
+ for ($attr = @ldap_first_attribute($this->_link, $this->_entry);
@@ -291 +291 @@
- $attr = @ldap_next_attribute($this->_link,
$this->_entry, $ber)) {
+ $attr = @ldap_next_attribute($this->_link, $this->_entry)) {
More information about the bugs
mailing list