2009-02-01 18:55:26 +00:00
|
|
|
--TEST--
|
|
|
|
Test get_magic_quotes_gpc() function
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
/* Prototype: int get_magic_quotes_gpc ( void )
|
2011-07-22 11:25:30 +00:00
|
|
|
* This function is not supported anymore and will always return false
|
|
|
|
*/
|
2009-02-01 18:55:26 +00:00
|
|
|
|
|
|
|
echo "Simple testcase for get_magic_quotes_gpc() function\n";
|
2011-07-22 11:25:30 +00:00
|
|
|
var_dump(get_magic_quotes_gpc());
|
2009-02-01 18:55:26 +00:00
|
|
|
|
|
|
|
echo "\n-- Error cases --\n";
|
|
|
|
// no checks on number of args
|
|
|
|
var_dump(get_magic_quotes_gpc(true));
|
|
|
|
|
|
|
|
?>
|
|
|
|
===DONE===
|
2011-07-22 11:25:30 +00:00
|
|
|
--EXPECTF--
|
2009-02-01 18:55:26 +00:00
|
|
|
Simple testcase for get_magic_quotes_gpc() function
|
|
|
|
|
2011-07-22 11:25:30 +00:00
|
|
|
Deprecated: Function get_magic_quotes_gpc() is deprecated in %s on line %d
|
2009-02-01 18:55:26 +00:00
|
|
|
bool(false)
|
|
|
|
|
2011-07-22 11:25:30 +00:00
|
|
|
-- Error cases --
|
2009-02-01 18:55:26 +00:00
|
|
|
|
2011-07-22 11:25:30 +00:00
|
|
|
Deprecated: Function get_magic_quotes_gpc() is deprecated in %s on line %d
|
2009-02-01 18:55:26 +00:00
|
|
|
|
2011-07-22 11:25:30 +00:00
|
|
|
Warning: get_magic_quotes_gpc() expects exactly 0 parameters, 1 given in %s on line %d
|
|
|
|
NULL
|
|
|
|
===DONE===
|