xref: /PHP-5.6/sapi/cli/tests/bug64544.phpt (revision 953f0750)
1--TEST--
2Bug #64544 (Valgrind warnings after using putenv)
3--SKIPIF--
4<?php
5if (substr(PHP_OS, 0, 3) == "WIN") {
6	die("skip non windows test");
7}
8?>
9--FILE--
10<?php
11
12putenv("HOME=/tmp");
13var_dump(getenv("HOME"));
14
15putenv("FOO=BAR");
16var_dump(getenv("FOO"));
17?>
18--EXPECTF--
19string(4) "/tmp"
20string(3) "BAR"
21