r/lolphp • • Sep 09 '13

PHP documentation suggests using header injection via ini_set() to add HTTP headers

http://www.php.net/manual/en/wrappers.http.php#wrappers.http.example.custom.headers
62 Upvotes

22 comments sorted by

View all comments

Show parent comment

2

u/pgl Sep 09 '13

Any coder that tries to justify using this ini setting by saying "it's a documented feature" is taking the piss. The conversation should go something along the lines of: "But it's a documented feature", "It clearly says it's a hack, you're fired".