Annotation of embedaddon/php/ext/standard/tests/strings/stripcslashes_basic.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test stripcslashes() function : basic functionality 
                      3: --FILE--
                      4: <?php
                      5: 
                      6: /* Prototype  : string stripcslashes  ( string $str  )
                      7:  * Description: Returns a string with backslashes stripped off. Recognizes C-like \n, \r ..., 
                      8:  *              octal and hexadecimal representation.
                      9:  * Source code: ext/standard/string.c
                     10: */
                     11: 
                     12: echo "*** Testing stripcslashes() : basic functionality ***\n";
                     13: var_dump(stripcslashes('\H\e\l\l\o \W\or\l\d'));
                     14: var_dump(stripcslashes('Hello World\\r\\n'));
                     15: var_dump(stripcslashes('\x48\x65\x6c\x6c\x6f \x57\x6f\x72\x6c\x64'));
                     16: var_dump(stripcslashes('\110\145\154\154\157 \127\157\162\154\144'));
                     17: 
                     18: ?>
                     19: ===DONE===
                     20: --EXPECT--
                     21: *** Testing stripcslashes() : basic functionality ***
                     22: string(11) "Hello World"
                     23: string(13) "Hello World
                     24: "
                     25: string(11) "Hello World"
                     26: string(11) "Hello World"
                     27: ===DONE===
                     28: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>