Running PHP8.1, the mhash function is marked as deprecated so when updating an LM password a warning is emitted causing the update operation to fail, regardless of the settings in php.ini around error_reporting. Turns out, the error reporting level is always reset to E_ALL inside common.php instead of the original value. This MR stores the current reporting setting before disabling, then uses the stored value to reset the reporting setting back to the original instead of E_ALL.
Thanks for this idea, but I wont merge it. The fix should be to rework the mhash function, but since the 1.2 code base is old, it is unlikey to be done. As v2 is being worked on, any fix should be in there.
Running PHP8.1, the
mhash
function is marked as deprecated so when updating an LM password a warning is emitted causing the update operation to fail, regardless of the settings in php.ini around error_reporting. Turns out, the error reporting level is always reset to E_ALL inside common.php instead of the original value. This MR stores the current reporting setting before disabling, then uses the stored value to reset the reporting setting back to the original instead of E_ALL.