{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/2533","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/2533/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/2533/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/2533/events","html_url":"https://github.com/facebook/hhvm/issues/2533","id":32176731,"number":2533,"title":"`putenv` does not unset environment variables when given no value","user":{"login":"RafeKettler","id":540836,"avatar_url":"https://avatars.githubusercontent.com/u/540836?v=3","gravatar_id":"","url":"https://api.github.com/users/RafeKettler","html_url":"https://github.com/RafeKettler","followers_url":"https://api.github.com/users/RafeKettler/followers","following_url":"https://api.github.com/users/RafeKettler/following{/other_user}","gists_url":"https://api.github.com/users/RafeKettler/gists{/gist_id}","starred_url":"https://api.github.com/users/RafeKettler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RafeKettler/subscriptions","organizations_url":"https://api.github.com/users/RafeKettler/orgs","repos_url":"https://api.github.com/users/RafeKettler/repos","events_url":"https://api.github.com/users/RafeKettler/events{/privacy}","received_events_url":"https://api.github.com/users/RafeKettler/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/hhvm/labels/php5%20incompatibility","name":"php5 incompatibility","color":"837ced"}],"state":"closed","locked":false,"assignee":{"login":"JoelMarcey","id":3757713,"avatar_url":"https://avatars.githubusercontent.com/u/3757713?v=3","gravatar_id":"","url":"https://api.github.com/users/JoelMarcey","html_url":"https://github.com/JoelMarcey","followers_url":"https://api.github.com/users/JoelMarcey/followers","following_url":"https://api.github.com/users/JoelMarcey/following{/other_user}","gists_url":"https://api.github.com/users/JoelMarcey/gists{/gist_id}","starred_url":"https://api.github.com/users/JoelMarcey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoelMarcey/subscriptions","organizations_url":"https://api.github.com/users/JoelMarcey/orgs","repos_url":"https://api.github.com/users/JoelMarcey/repos","events_url":"https://api.github.com/users/JoelMarcey/events{/privacy}","received_events_url":"https://api.github.com/users/JoelMarcey/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2014-04-24T19:09:37Z","updated_at":"2015-12-03T12:13:17Z","closed_at":"2014-05-06T17:51:55Z","body":"```bash\r\nubuntu@ip-10-69-28-10:~/dev/hhvm$ cat putenv.php\r\n<?php\r\nputenv('FOO=BAR');\r\nvar_dump(getenv('FOO'));\r\nputenv('FOO');\r\nvar_dump(getenv('FOO'));\r\nubuntu@ip-10-69-28-10:~/dev/hhvm$ php putenv.php\r\nstring(3) \"BAR\"\r\nbool(false)\r\nubuntu@ip-10-69-28-10:~/dev/hhvm$ hhvm putenv.php\r\nstring(3) \"BAR\"\r\nstring(3) \"BAR\"\r\n```\r\n\r\nfixing this as this causes a test to fail for aws-sdk-php."},"comment":{"url":"https://api.github.com/repos/facebook/hhvm/issues/comments/161617304","html_url":"https://github.com/facebook/hhvm/issues/2533#issuecomment-161617304","issue_url":"https://api.github.com/repos/facebook/hhvm/issues/2533","id":161617304,"user":{"login":"k0pernikus","id":436935,"avatar_url":"https://avatars.githubusercontent.com/u/436935?v=3","gravatar_id":"","url":"https://api.github.com/users/k0pernikus","html_url":"https://github.com/k0pernikus","followers_url":"https://api.github.com/users/k0pernikus/followers","following_url":"https://api.github.com/users/k0pernikus/following{/other_user}","gists_url":"https://api.github.com/users/k0pernikus/gists{/gist_id}","starred_url":"https://api.github.com/users/k0pernikus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k0pernikus/subscriptions","organizations_url":"https://api.github.com/users/k0pernikus/orgs","repos_url":"https://api.github.com/users/k0pernikus/repos","events_url":"https://api.github.com/users/k0pernikus/events{/privacy}","received_events_url":"https://api.github.com/users/k0pernikus/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T12:13:17Z","updated_at":"2015-12-03T12:13:17Z","body":"I am unable to unset env variable using HipHop VM 3.6.1 (rel) as well.\r\n\r\nOn bash:\r\n\r\n```\r\n export FOO=wtf\r\n```\r\n\r\nphp-hhvm-code:\r\n```\r\nputenv(\"FOO=\");\r\nputenv(\"FOO\");\r\nvar_dump(getenv('FOO'));\r\n```\r\n\r\nOutput:\r\n```\r\nstring(3) \"wtf\"\r\n```\r\n"}}