mirror of
https://github.com/php/php-src.git
synced 2024-10-01 06:46:08 +00:00
953f07503a
The frozen_envion is needed, since if an item in environ is updated (like the test script HOME one), invalid free still shows up
21 lines
305 B
PHP
21 lines
305 B
PHP
--TEST--
|
|
Bug #64544 (Valgrind warnings after using putenv)
|
|
--SKIPIF--
|
|
<?php
|
|
if (substr(PHP_OS, 0, 3) == "WIN") {
|
|
die("skip non windows test");
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
putenv("HOME=/tmp");
|
|
var_dump(getenv("HOME"));
|
|
|
|
putenv("FOO=BAR");
|
|
var_dump(getenv("FOO"));
|
|
?>
|
|
--EXPECTF--
|
|
string(4) "/tmp"
|
|
string(3) "BAR"
|