6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/10/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#12124] horde crashes with php memory exhaustion
*
Your Email Address
*
Spam protection
Enter the letters below:
\ /.__ .__ . .._. >< [__)[__)|\/| | / \[__)| | |_|_
Comment
> I can confirm, that the issue appeared with the upgrade from Horde > Core 2.4.1 to Horde Core 2.4.3 and still exists in the newest > releases. > > On my system, Registry.php, function importConfig() calls > $config = Horde::loadConfiguration('conf.php', 'conf', $app); > which in turns calls Horde.php, ::loadConfiguration(). Around line > 350 in the file, there is a loop > > while (list($file, $log_check) = each($filelist)) > > This loop is executed around 1550 times, never terminates and leads > to exhausting the memory. At the beginning of the loop I inserted > > echo "file = $file, log_check=$log_check, filelist="; > print_r ($filelist); > echo "</br>"; > > this prints then 1550 times > file = /mnt/new/home/htdocs/webmail/lib/../config/conf.php, > log_check=1, filelist=Array ( > [/mnt/new/home/htdocs/webmail/lib/../config/conf.php] => 1 ) > > The snipped modifying $filelist > > if (!empty($conf['vhosts'])) { > $file = $config_dir . 'conf-' . > $conf['server']['name'] . '.php'; > if (file_exists($file)) { > $filelist[$file] = 0; > } > } > > is never executed (I have no vhosts), so filelist is not changed. > > The preceeding condition > if (!$vhost_added && $app == 'horde' && $config_file == 'conf.php') > > is matched only on the first iteration of the while loop. > > Any ideas why doesn't the loop terminate > > I have php 5.3.23 run in php-fpm with xcache.
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