Skip to content

Fix GH-17951: Addition of max_memory_limit INI #18011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Fix whitespace and remove vim comments
  • Loading branch information
frederikpyt committed Mar 11, 2025
commit ffe79135b50c31701cd3cc849317e1e73f6a41de
4 changes: 0 additions & 4 deletions main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ static PHP_INI_MH(OnSetSerializePrecision)
static PHP_INI_MH(OnChangeMemoryLimit)
{
size_t value;

if (new_value) {
value = zend_ini_parse_uquantity_warn(new_value, entry->name);
} else {
Expand Down Expand Up @@ -360,13 +359,11 @@ static PHP_INI_MH(OnChangeMemoryLimit)
return FAILURE;
}
}

PG(memory_limit) = value;
return SUCCESS;
}
/* }}} */

/* {{{ PHP_INI_MH */
static PHP_INI_MH(OnChangeMaxMemoryLimit)
{
size_t value;
Expand All @@ -386,7 +383,6 @@ static PHP_INI_MH(OnChangeMaxMemoryLimit)

return SUCCESS;
}
/* }}} */

/* {{{ PHP_INI_MH */
static PHP_INI_MH(OnSetLogFilter)
Expand Down
Loading