1--TEST--
2Test stripcslashes() function : basic functionality
3--FILE--
4<?php
5
6echo "*** Testing stripcslashes() : basic functionality ***\n";
7var_dump(stripcslashes('\H\e\l\l\o \W\or\l\d'));
8var_dump(stripcslashes('Hello World\\r\\n'));
9var_dump(stripcslashes('\\\Hello World'));
10var_dump(stripcslashes('\x48\x65\x6c\x6c\x6f \x57\x6f\x72\x6c\x64'));
11var_dump(stripcslashes('\110\145\154\154\157 \127\157\162\154\144'));
12
13var_dump(bin2hex(stripcslashes('\\a')));
14var_dump(bin2hex(stripcslashes('\\b')));
15var_dump(bin2hex(stripcslashes('\\f')));
16var_dump(bin2hex(stripcslashes('\\t')));
17var_dump(bin2hex(stripcslashes('\\v')));
18?>
19--EXPECT--
20*** Testing stripcslashes() : basic functionality ***
21string(11) "Hello World"
22string(13) "Hello World
23"
24string(12) "\Hello World"
25string(11) "Hello World"
26string(11) "Hello World"
27string(2) "07"
28string(2) "08"
29string(2) "0c"
30string(2) "09"
31string(2) "0b"
32