Annotation of embedaddon/php/ext/standard/tests/general_functions/putenv.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: putenv() basic tests
! 3: --FILE--
! 4: <?php
! 5:
! 6: $var_name="SUCHVARSHOULDNOTEXIST";
! 7:
! 8: var_dump(getenv($var_name));
! 9: var_dump(putenv($var_name."=value"));
! 10: var_dump(getenv($var_name));
! 11:
! 12: var_dump(putenv($var_name."="));
! 13: var_dump(getenv($var_name));
! 14:
! 15: var_dump(putenv($var_name));
! 16: var_dump(getenv($var_name));
! 17:
! 18: echo "Done\n";
! 19: ?>
! 20: --EXPECTF--
! 21: bool(false)
! 22: bool(true)
! 23: string(5) "value"
! 24: bool(true)
! 25: string(0) ""
! 26: bool(true)
! 27: bool(false)
! 28: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>