Skip to content

Enable ini parser to understand sections with foreslash /

Our /etc/jailkit/jk_socketd.ini is around 10MB in size. When the ini parser reads this file, the PHP cron process runs out of memory and crashes with its default memory limit of 128M.

The content of that file looks like this:

[/var/www/clients/client1/web1/dev/log]
base=512
peak=2048
interval=10

There is a method here which cleans that file: https://git.ispconfig.org/ispconfig/ispconfig3/-/blob/develop/server/lib/classes/system.inc.php#L2809

But the problem is that the ini parser doesn't understand the / foreslash character in ini sections. So the file is never cleaned up, because the ini parser doesn't see any of the sections in that file.

By adding the / to the regex I expect that the file will be much smaller and the memory limit will not be hit. Additionally it's nice to have clean system configuration.

Edited by Webslice

Merge request reports