Annotation of embedaddon/php/ext/standard/tests/general_functions/get_magic_quotes_runtime.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
                      2: Test get_magic_quotes_runtime() function
                      3: --FILE--
                      4: <?php
                      5: /* Prototype: int get_magic_quotes_runtime  ( void  )
1.1.1.2 ! misho       6:  * This function is not supported anymore and will always return false
        !             7:  */
1.1       misho       8: 
                      9: echo "Simple testcase for get_magic_quotes_runtime() function\n";
                     10: 
1.1.1.2 ! misho      11: var_dump(get_magic_quotes_runtime());
1.1       misho      12: 
                     13: echo "\n-- Error cases --\n"; 
                     14: // no checks on number of args
                     15: var_dump(get_magic_quotes_runtime(true)); 
                     16: 
                     17: ?>
                     18: ===DONE===
                     19: --EXPECTF--
                     20: Simple testcase for get_magic_quotes_runtime() function
1.1.1.2 ! misho      21: bool(false)
1.1       misho      22: 
                     23: -- Error cases --
1.1.1.2 ! misho      24: 
        !            25: Warning: get_magic_quotes_runtime() expects exactly 0 parameters, 1 given in %s on line %d
        !            26: NULL
1.1       misho      27: ===DONE===

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