Return to get_magic_quotes_gpc.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / general_functions |
1.1 misho 1: --TEST-- 2: Test get_magic_quotes_gpc() function 3: --FILE-- 4: <?php 5: /* Prototype: int get_magic_quotes_gpc ( 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_gpc() function\n"; 1.1.1.2 ! misho 10: var_dump(get_magic_quotes_gpc()); 1.1 misho 11: 12: echo "\n-- Error cases --\n"; 13: // no checks on number of args 14: var_dump(get_magic_quotes_gpc(true)); 15: 16: ?> 17: ===DONE=== 1.1.1.2 ! misho 18: --EXPECTF-- 1.1 misho 19: Simple testcase for get_magic_quotes_gpc() function 20: bool(false) 21: 22: -- Error cases -- 1.1.1.2 ! misho 23: ! 24: Warning: get_magic_quotes_gpc() expects exactly 0 parameters, 1 given in %s on line %d ! 25: NULL ! 26: ===DONE===