note 127415 added to function.filter-input
| From: | HonzaZ at main dot php dot net | Date: | Fri, 05 Aug 2022 10:57:50 +0000 |
| Subject: | note 127415 added to function.filter-input | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-219366@lists.php.net to get a copy of this message | ||
In fastcgi sapi implementations, filter_input(INPUT_SERVER) can return empty results.
In my case (8.1.9 64bit php-cgi) it was caused by auto_globals_jit enabled . When disabled (in
php.ini on php startup), filter_input(INPUT_SERVER) works correctly.
php-fpm sapi isn't affected.
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.159.163 (proxied: 185.156.122.72)
----
Manual Page -- https://php.net/manual/en/function.filter-input.php
Edit -- https://main.php.net/note/edit/127415
Del: integrated -- https://main.php.net/note/delete/127415/integrated
Del: useless -- https://main.php.net/note/delete/127415/useless
Del: bad code -- https://main.php.net/note/delete/127415/bad+code
Del: spam -- https://main.php.net/note/delete/127415/spam
Del: non-english -- https://main.php.net/note/delete/127415/non-english
Del: in docs -- https://main.php.net/note/delete/127415/in+docs
Del: other reasons-- https://main.php.net/note/delete/127415
Reject -- https://main.php.net/note/reject/127415
Search -- https://main.php.net/manage/user-notes.php