Annotation of embedaddon/php/ext/standard/tests/general_functions/set_magic_quotes_runtime_basic.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test set_magic_quotes_runtime() function -  basic test 
        !             3: --INI--
        !             4: magic_quotes_runtime = 0
        !             5: --FILE--
        !             6: <?php
        !             7: /* Prototype: bool set_magic_quotes_runtime  ( int $new_setting  )
        !             8:  * Description: Sets the current active configuration setting of magic_quotes_runtime
        !             9: */
        !            10: 
        !            11: echo "Simple testcase for set_magic_quotes_runtime() function - basic test\n";
        !            12: 
        !            13: $g = get_magic_quotes_runtime();
        !            14: echo "\n-- magic quotes runtime set in INI file: " . $g . "--\n";
        !            15: 
        !            16: echo "\n-- Set magic quotes runtime to 1:  --\n";
        !            17: var_dump(set_magic_quotes_runtime(1));
        !            18: $g = get_magic_quotes_runtime();
        !            19: echo "\n-- magic quotes runtime after set: " . $g . " --\n";
        !            20: 
        !            21: echo "\n-- Set magic quotes runtime to 0:  --\n";
        !            22: var_dump(set_magic_quotes_runtime(0));
        !            23: $g = get_magic_quotes_runtime();
        !            24: echo "\n-- magic quotes runtime after set: " . $g . " --\n";
        !            25: 
        !            26: echo "\n-- Set magic quotes runtime to 1:  --\n";
        !            27: var_dump(set_magic_quotes_runtime(1));
        !            28: $g = get_magic_quotes_runtime();
        !            29: echo "\n-- magic quotes runtime after set: " . $g . " --\n";
        !            30: 
        !            31: ?>
        !            32: ===DONE===
        !            33: --EXPECTF--
        !            34: Simple testcase for set_magic_quotes_runtime() function - basic test
        !            35: 
        !            36: -- magic quotes runtime set in INI file: 0--
        !            37: 
        !            38: -- Set magic quotes runtime to 1:  --
        !            39: 
        !            40: Deprecated: Function set_magic_quotes_runtime() is deprecated in %s on line %d
        !            41: bool(true)
        !            42: 
        !            43: -- magic quotes runtime after set: 1 --
        !            44: 
        !            45: -- Set magic quotes runtime to 0:  --
        !            46: 
        !            47: Deprecated: Function set_magic_quotes_runtime() is deprecated in %s on line %d
        !            48: bool(true)
        !            49: 
        !            50: -- magic quotes runtime after set: 0 --
        !            51: 
        !            52: -- Set magic quotes runtime to 1:  --
        !            53: 
        !            54: Deprecated: Function set_magic_quotes_runtime() is deprecated in %s on line %d
        !            55: bool(true)
        !            56: 
        !            57: -- magic quotes runtime after set: 1 --
        !            58: ===DONE===

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