Summary:
FEU memory leak / logic-loop ?
Detailed Description:
Following on from bug report 12269 I have been developing a simple module to
extend the functionality I need for FEU.
In my module I do the following FEUExtensions.module.php
\CMSMS\Hookmanager::add_hook(
'FrontEndUsers::OnUpdateUser','FEUExtensions::UpdateVerification');
.
.
.
public static function UpdateVerification( $resp ) {
$feu = \cms_utils::get_module('FrontEndUsers');
.
. I check some FEU properties
. If a combination of properties is OK then I do
$t = strval(time());
$feu->SetUserPropertyFull("verification_date", $t,$resp['id']);
I have noticed that the one line "$feu->SetUserPropertyFull("verification_date",
$t,$resp['id']);" crashes Apache in the development/test Xampp environment I as
using. The default values for memory_limit for Xampp run on a Windows PC is a
known problem - so I have increased it a few times - the only difference that
makes is that the it runs for longer and longer before crashing.
Even if you are not a fan of what I need to do or my programming to achieve what
is needed - regardless I though you would want to know that there is something
not right with the FEU module (sorry I lack the expertise to diagnose memory
leaks - I have checked the php and apache error logs - empty I think it is
crashing before reporting)
From my diagnostic I can see that the API SetUserPropertyFull is executed
numerous times by FEU and successful every time. But when called from another
module then execution time is goes from milliseconds to minutes