[php-src] Issue #8014: http_response_code(400) in file_exists bug when using variable (in if block)
| From: | ReturnMe | Date: | Mon, 31 Jan 2022 23:35:08 +0000 |
| Subject: | [php-src] Issue #8014: http_response_code(400) in file_exists bug when using variable (in if block) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239387@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8014
Comment Author: ReturnMe
> @ReturnMe Your previous edit said
u was
> index, which would explain why file_exists(...
> $_GET['u'] . '.php') would return
> true. This would indicate that most likely something with your
> Apache configuration isn't ok and your $_GET params are getting
> lost. You can check by var_dump($_GET); at the top of your script
> and opening an URL with ?foo=bar.
Ahh, absolutely!
I already have my existing file, 404.php YES!
I'm so sorry, I took your time. You are perfect. I am very grateful, thank you very much.