Skip to content

Conversation

TimWolla
Copy link
Member

No description provided.

@TimWolla TimWolla force-pushed the argc-argv-from-query branch from 6900d7e to c1f22ff Compare August 27, 2025 12:59
@@ -886,6 +891,7 @@ static bool php_auto_globals_create_server(zend_string *name)
zend_hash_update(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), ZSTR_KNOWN(ZEND_STR_ARGC), argc);
}
} else {
zend_error(E_DEPRECATED, "Deriving $_SERVER['argc'] and $_SERVER['argv'] from $_SERVER['QUERY_STRING'] is deprecated, configure register_argc_argv=0 to suppress this message and access the query parameters via $_SERVER['QUERY_STRING'] or $_GET");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nit, but this should be two sentences:

Deriving $_SERVER['argc'] and $_SERVER['argv'] from $_SERVER['QUERY_STRING'] is deprecated. Configure register_argc_argv=0 to suppress this message and access the query parameters via $_SERVER['QUERY_STRING'] or $_GET

(ie, a deprecated. Configure instead of a deprecated, configure)

@TimWolla TimWolla force-pushed the argc-argv-from-query branch from 090baf3 to 90a3ccd Compare August 28, 2025 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants