-
Notifications
You must be signed in to change notification settings - Fork 116
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
Stop using filter_input with $_SERVER variables #254
Comments
@shadyvb How obscure! Good on ya. |
Interesting. Yeah, and Nacin said that the |
That's just sad :( |
Good to know. It's a shame they are not super reliable. Should we try to avoid them in the future @westonruter? |
@jonathanbardo yeah, unfortunately I think we can't rely on them if they aren't reliable for core. |
Sorry I must have closed this by accident! Fail |
…d a bug where the filter_input and INPUT_SERVER combination would sometimes erroneously return null. See xwp/stream#254 for more information.
Because of a PHP confirmed bug,
filter_input( INPUT_SERVER, 'anything' )
would return null on some implementations of FCGI/PHP 5.4 ( and probably older versions as well ).https://bugs.php.net/bug.php?id=49184
Use workaround mentioned in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=730094:
Reported at https://wordpress.org/support/topic/ip-addresses-not-showing-being-added-to-db-in-version-119?replies=9
The text was updated successfully, but these errors were encountered: