summaryrefslogtreecommitdiffhomepage
path: root/tests/custom/99_bugs/46_getenv_destroys_environ
blob: 1879deeccf830a9de4eb7f73cf17edf5ca2476bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
A call to getenv() without parameters destroys environ, and subsequent calls
to getenv() (with or without parameter) return nothing.

-- Testcase --
{%
	getenv();
	print(length(getenv()) > 0, '\n');
%}
-- End --

-- Expect stdout --
true
-- End --