blob: b8455b4bc675e5991ad326a3cb6de536afe48f06 (
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 superglobal variables _ENV
* 027-env.phpt
*
*/
namespace TestVariables {
/*
* Test
*/
void test_env(void)
{
Php::out << "HTTP_USER_AGENT => " << Php::SERVER["HTTP_USER_AGENT"] << std::endl;
Php::out << "ENVVAR1 => " << Php::SERVER["ENVVAR1"] << std::endl;
Php::out << "HTTP_REFERER => " << Php::SERVER["HTTP_REFERER"] << std::endl;
Php::out << "REQUEST_METHOD => " << Php::SERVER["REQUEST_METHOD"] << std::endl;
Php::out << "HTTP_HOST => " << Php::SERVER["HTTP_HOST"] << std::endl;
}
}
|