PHP  
 PHP_5_5
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Expected Test Failure Report for ext/filter/tests/bug49184.phpt ('Bug #67296 (filter_input doesn't validate variables)')

Script

1: <?php
2:   var_dump
(filter_input(INPUT_SERVER"HTTP_X_FORWARDED_FOR"FILTER_UNSAFE_RAW));
3:   
var_dump($_SERVER["HTTP_X_FORWARDED_FOR"]);
4:   
var_dump(getenv("HTTP_X_FORWARDED_FOR"));
5:   
var_dump("done");
6:
?>
7:

Expected

string(11) "example.com"
string(11) "example.com"
string(11) "example.com"
string(4) "done"

Output

NULL
string(11) "example.com"
string(11) "example.com"
string(4) "done"

Diff

001+ NULL
003- string(11) "example.com"

 

Generated at Thu, 18 Dec 2014 07:17:56 +0000 (2 days ago)

Copyright © 2005-2014 The PHP Group
All rights reserved.