[wp-trac] [WordPress Trac] #54142: Undefined array key "SCRIPT_NAME" in wp_fix_server_vars()
WordPress Trac
noreply at wordpress.org
Fri Nov 12 01:03:11 UTC 2021
#54142: Undefined array key "SCRIPT_NAME" in wp_fix_server_vars()
------------------------------+-----------------------------
Reporter: mcjambi | Owner: hellofromTonya
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 5.9
Component: Bootstrap/Load | Version: 2.0
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses:
------------------------------+-----------------------------
Comment (by hellofromTonya):
Noting: If the key doesn't exist, the error depends upon the PHP version:
* PHP 8.0+ throws a warning
* PHP 8.1 also throws a deprecation notice
{{{
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type
string is deprecated
}}}
* PHP 9 will likely be a fatal error
See it in action: https://3v4l.org/aJ2kX
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54142#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list