W
W
WST2012-09-09 02:28:14
linux
WST, 2012-09-09 02:28:14

How to make PHP 5.4 process *.png files?

The next problem: there is a web server on nginx, it has a virtual node configured in such a way that the index.php script is called for all requests to /pony.png (that is, URL rewrite is done). Everything was working fine until PHP was upgraded from version 5.3.8 to version 5.4.6. With the new version of PHP, it flatly refuses to execute the script if the HTTP request came to /pony.png, regardless of what name extension the script itself has.
I believe this change was made for security reasons, but can it be bypassed without the hacky solution of a redirect?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
edogs, 2012-09-09
@WST

bugs.php.net/bug.php?id=60763 ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question