PHP  
 PHP_HEAD
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/bug42718.phpt ('Bug #42718 (unsafe_raw filter not applied when configured as default filter)')

Script

1: <?php
2:
echo ini_get('filter.default') . "\n";
3: echo 
ini_get('filter.default_flags') . "\n";
4:
var_dump(FILTER_FLAG_STRIP_LOW == 4);
5: echo 
addcslashes($_GET['a'],"\0") . "\n";
6:
?>
7:

Expected

unsafe_raw
4
bool(true)
1

Output

unsafe_raw
4
bool(true)
1\000

Diff

004+ 1\000
004- 1

 

Generated at Tue, 22 Jul 2014 01:33:26 +0000 (10 days ago)

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