{"action":"created","issue":{"url":"https://api.github.com/repos/php/php-src/issues/1126","labels_url":"https://api.github.com/repos/php/php-src/issues/1126/labels{/name}","comments_url":"https://api.github.com/repos/php/php-src/issues/1126/comments","events_url":"https://api.github.com/repos/php/php-src/issues/1126/events","html_url":"https://github.com/php/php-src/pull/1126","id":59222684,"number":1126,"title":"emit error instead of warning when session persistence fails","user":{"login":"staabm","id":120441,"avatar_url":"https://avatars.githubusercontent.com/u/120441?v=3","gravatar_id":"","url":"https://api.github.com/users/staabm","html_url":"https://github.com/staabm","followers_url":"https://api.github.com/users/staabm/followers","following_url":"https://api.github.com/users/staabm/following{/other_user}","gists_url":"https://api.github.com/users/staabm/gists{/gist_id}","starred_url":"https://api.github.com/users/staabm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staabm/subscriptions","organizations_url":"https://api.github.com/users/staabm/orgs","repos_url":"https://api.github.com/users/staabm/repos","events_url":"https://api.github.com/users/staabm/events{/privacy}","received_events_url":"https://api.github.com/users/staabm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/php/php-src/labels/Enhancement","name":"Enhancement","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-27T11:12:07Z","updated_at":"2016-01-31T05:09:28Z","closed_at":"2015-07-26T13:41:01Z","pull_request":{"url":"https://api.github.com/repos/php/php-src/pulls/1126","html_url":"https://github.com/php/php-src/pull/1126","diff_url":"https://github.com/php/php-src/pull/1126.diff","patch_url":"https://github.com/php/php-src/pull/1126.patch"},"body":"PHP creates empty files on NFS mounted directories but doesn't write session content into the files.\r\n\r\nWith E_ALL error reporting you get a warning \"Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/XX..ZZ..YY/tmp/www/session/) in Unknown on line 0\"\r\n\r\nEven chmod the files (php itself created) to 777 doesnt make it work.\r\nAs the test-script in https://bugs.php.net/bug.php?id=69136 shows, php itself sees the directory as readable+writeable, but the write of php-src doesn't succeed nevertheless.\r\n\r\nhttp sessions are such a basic part which makes me think that you need a hard error when they dont work. nearly no app will work when php behaves like the session did work but could not be persisted at the end of a request\r\n\r\nits also hard to debug to find whats going on in the first place\r\n\r\nrefs parts of https://bugs.php.net/bug.php?id=69136"},"comment":{"url":"https://api.github.com/repos/php/php-src/issues/comments/177396902","html_url":"https://github.com/php/php-src/pull/1126#issuecomment-177396902","issue_url":"https://api.github.com/repos/php/php-src/issues/1126","id":177396902,"user":{"login":"yohgaki","id":118485,"avatar_url":"https://avatars.githubusercontent.com/u/118485?v=3","gravatar_id":"","url":"https://api.github.com/users/yohgaki","html_url":"https://github.com/yohgaki","followers_url":"https://api.github.com/users/yohgaki/followers","following_url":"https://api.github.com/users/yohgaki/following{/other_user}","gists_url":"https://api.github.com/users/yohgaki/gists{/gist_id}","starred_url":"https://api.github.com/users/yohgaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yohgaki/subscriptions","organizations_url":"https://api.github.com/users/yohgaki/orgs","repos_url":"https://api.github.com/users/yohgaki/repos","events_url":"https://api.github.com/users/yohgaki/events{/privacy}","received_events_url":"https://api.github.com/users/yohgaki/received_events","type":"User","site_admin":false},"created_at":"2016-01-31T05:09:28Z","updated_at":"2016-01-31T05:09:28Z","body":"It should not be E_ERROR. Writes may fail various reasons such as back end storage system had network problem and/or storage server process died for some reason.\r\n\r\nMake sure not to use root account. Root does not have \"root\" privilege on most NFS setups. Make sure to use normal user/group and it matches."}}