corestack_ php_ ini_ validate
Check a php.ini.
When to use it
Check a custom php.ini for a row before saving it, with the same validator a save uses. It answers ok, each problem with its line, column, severity, code and suggestion (diagnostics), and what the php.ini would change (effective). Send draft settings or extensions to judge it against the form you are about to save, and image to preview a version change. Nothing is saved and the site is not touched. Save it with corestack_php_ini_update.
A directive the platform fixes answers code locked with its reason. Among them: arg_separator.input on every platform, and variables_order, which is accepted only as letters of EGPCS that keep G, such as GPCS (Magento 2 fixes it whole), because the platform's routers read the query string.
Ask for it
Using the Corefinity MCP server, call corestack_php_ini_validate with site_id 4211, custom_ini max_input_vars = 5000
realpath_cache_size = 8M
. (Check a php.ini.) Tell me what it returned.Inputs
The whole custom php.ini to check.
Draft extensions to judge it with. Up to 200 items.
A version change's image; default the row's. Up to 255 characters.
Draft form settings to judge it with, {directive: value}.
The row: the site or one of its environments. At least 1.
Example call
{
"name": "corestack_php_ini_validate",
"arguments": {
"site_id": 4211,
"custom_ini": "max_input_vars = 5000\nrealpath_cache_size = 8M\n"
}
}If it is refused
| Reason | What to do |
|---|---|
feature_off | PHP configuration is not switched on in the Control Panel yet. |
invalid_arguments | The arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again. |
tenant_mismatch | The object does not exist or the token may not see it. Check the id. |
scope_required | The token lacks a scope this call needs. Open the link in the answer to add it, then call again. |
pin_refused | The grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it. |
rate_limited | Too many calls. Wait for the number of seconds the answer names. |
temporarily_unavailable | The Control Panel could not answer just now. Nothing was started; try again shortly. |
internal_error | Something went wrong on our side. Quote the trace id to support. |