Skip to content

Documentation clarification about empty value $cfg['MemoryLimit'] #11448

@herndlm

Description

@herndlm

Hi, I think there should be more infos about the impacts of "empty" values of the "MemoryLimit" configuration setting in the official documentation in http://docs.phpmyadmin.net/en/latest/config.html#cfg_MemoryLimit

When doing exports and imports only if the config value is not empty the "ini_set" call will be made as in

if (! empty($cfg['MemoryLimit'])) {
and
if (! empty($cfg['MemoryLimit'])) {
which is exactly what I needed because setting the memory_limit is forbidden by default when using Suhosin¹ and results in spamming the syslog with messages like "ALERT - script tried to increase memory_limit to 268435456 bytes which is above the allowed value".

So maybe something like "If set to zero, the php.ini default value is used." should be added there.

[1] https://suhosin.org/stories/configuration.html#suhosin-memory-limit

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions