summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/get_magic_quotes_gpc.phpt
blob: 75cde18b0875b22c9d1683bbd964aa935f21d3a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--TEST--
Test get_magic_quotes_gpc() function
--FILE--
<?php
/* Prototype: int get_magic_quotes_gpc  ( void  )
 * This function is not supported anymore and will always return false
 */

echo "Simple testcase for get_magic_quotes_gpc() function\n";
var_dump(get_magic_quotes_gpc());

echo "\n-- Error cases --\n"; 
// no checks on number of args
var_dump(get_magic_quotes_gpc(true)); 

?>
===DONE===
--EXPECTF--
Simple testcase for get_magic_quotes_gpc() function
bool(false)

-- Error cases --

Warning: get_magic_quotes_gpc() expects exactly 0 parameters, 1 given in %s on line %d
NULL
===DONE===