{"action":"created","comment":{"url":"https://api.github.com/repos/sugarcrm/shadow/pulls/comments/29219788","id":29219788,"diff_hunk":"@@ -3,36 +3,55 @@ Check writing to files in new dir with dir mask\n --INI--\n shadow.mkdir_mask = 0755\n --SKIPIF--\n-<?php if (!extension_loaded(\"shadow\")) print \"skip\"; ?>\n+<?php if (!extension_loaded('shadow')) {\n+    print 'skip';\n+} ?>\n+<?php if (exec('whoami') == 'root') {\n+    print 'skip';\n+} ?>\n --FILE--\n-<?php \n-require_once('setup.inc');\n+<?php\n+require_once 'setup.inc';\n+error_reporting(-1);\n+ini_set('display_errors', 1);\n+\n+mkdir(\"$template/txt/new/dir/\");\n+mkdir(\"$template/txt/new2/dir/\");\n \n file_put_contents(\"$template/txt/new/dir/_twrite.txt\", \"writing as template\\n\");\n-ini_set(\"shadow.mkdir_mask\", 0700);\n+ini_set('shadow.mkdir_mask', '0700');\n file_put_contents(\"$template/txt/new2/dir/_twrite.txt\", \"writing as template\\n\");\n+mkdir(\"$template/txt/new2/dir7000/\");\n+\n+clearstatcache();\n \n-$stat = stat(\"$template/txt/new/dir\");\n-echo decoct($stat[\"mode\"]).\"\\n\";\n+$stat = stat(\"$template/txt/new/dir/\");\n+echo substr(decoct($stat['mode']), -5).\"\\n\";","path":"tests/write_new_mask.phpt","position":33,"original_position":33,"commit_id":"6e18924f065e90ec64b5f1b3aafc43709b53ad63","original_commit_id":"6e18924f065e90ec64b5f1b3aafc43709b53ad63","user":{"login":"Michael-Gusev","id":966305,"avatar_url":"https://avatars.githubusercontent.com/u/966305?v=3","gravatar_id":"","url":"https://api.github.com/users/Michael-Gusev","html_url":"https://github.com/Michael-Gusev","followers_url":"https://api.github.com/users/Michael-Gusev/followers","following_url":"https://api.github.com/users/Michael-Gusev/following{/other_user}","gists_url":"https://api.github.com/users/Michael-Gusev/gists{/gist_id}","starred_url":"https://api.github.com/users/Michael-Gusev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Michael-Gusev/subscriptions","organizations_url":"https://api.github.com/users/Michael-Gusev/orgs","repos_url":"https://api.github.com/users/Michael-Gusev/repos","events_url":"https://api.github.com/users/Michael-Gusev/events{/privacy}","received_events_url":"https://api.github.com/users/Michael-Gusev/received_events","type":"User","site_admin":false},"body":"spaces between dot","created_at":"2015-04-28T07:34:15Z","updated_at":"2015-04-28T07:34:15Z","html_url":"https://github.com/sugarcrm/shadow/pull/3#discussion_r29219788","pull_request_url":"https://api.github.com/repos/sugarcrm/shadow/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/sugarcrm/shadow/pulls/comments/29219788"},"html":{"href":"https://github.com/sugarcrm/shadow/pull/3#discussion_r29219788"},"pull_request":{"href":"https://api.github.com/repos/sugarcrm/shadow/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/sugarcrm/shadow/pulls/3","id":32397355,"html_url":"https://github.com/sugarcrm/shadow/pull/3","diff_url":"https://github.com/sugarcrm/shadow/pull/3.diff","patch_url":"https://github.com/sugarcrm/shadow/pull/3.patch","issue_url":"https://api.github.com/repos/sugarcrm/shadow/issues/3","number":3,"state":"open","locked":false,"title":"[CRYS-766] fix tests/dir.phpt, add readme.md","user":{"login":"dduca-sugarcrm","id":10811010,"avatar_url":"https://avatars.githubusercontent.com/u/10811010?v=3","gravatar_id":"","url":"https://api.github.com/users/dduca-sugarcrm","html_url":"https://github.com/dduca-sugarcrm","followers_url":"https://api.github.com/users/dduca-sugarcrm/followers","following_url":"https://api.github.com/users/dduca-sugarcrm/following{/other_user}","gists_url":"https://api.github.com/users/dduca-sugarcrm/gists{/gist_id}","starred_url":"https://api.github.com/users/dduca-sugarcrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dduca-sugarcrm/subscriptions","organizations_url":"https://api.github.com/users/dduca-sugarcrm/orgs","repos_url":"https://api.github.com/users/dduca-sugarcrm/repos","events_url":"https://api.github.com/users/dduca-sugarcrm/events{/privacy}","received_events_url":"https://api.github.com/users/dduca-sugarcrm/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-01T08:14:29Z","updated_at":"2015-04-28T07:34:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"79d85403bd45209af41679ba40a1cbc068e46665","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sugarcrm/shadow/pulls/3/commits","review_comments_url":"https://api.github.com/repos/sugarcrm/shadow/pulls/3/comments","review_comment_url":"https://api.github.com/repos/sugarcrm/shadow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sugarcrm/shadow/issues/3/comments","statuses_url":"https://api.github.com/repos/sugarcrm/shadow/statuses/6e18924f065e90ec64b5f1b3aafc43709b53ad63","head":{"label":"dduca-sugarcrm:CRYS-766","ref":"CRYS-766","sha":"6e18924f065e90ec64b5f1b3aafc43709b53ad63","user":{"login":"dduca-sugarcrm","id":10811010,"avatar_url":"https://avatars.githubusercontent.com/u/10811010?v=3","gravatar_id":"","url":"https://api.github.com/users/dduca-sugarcrm","html_url":"https://github.com/dduca-sugarcrm","followers_url":"https://api.github.com/users/dduca-sugarcrm/followers","following_url":"https://api.github.com/users/dduca-sugarcrm/following{/other_user}","gists_url":"https://api.github.com/users/dduca-sugarcrm/gists{/gist_id}","starred_url":"https://api.github.com/users/dduca-sugarcrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dduca-sugarcrm/subscriptions","organizations_url":"https://api.github.com/users/dduca-sugarcrm/orgs","repos_url":"https://api.github.com/users/dduca-sugarcrm/repos","events_url":"https://api.github.com/users/dduca-sugarcrm/events{/privacy}","received_events_url":"https://api.github.com/users/dduca-sugarcrm/received_events","type":"User","site_admin":false},"repo":{"id":31011230,"name":"shadow","full_name":"dduca-sugarcrm/shadow","owner":{"login":"dduca-sugarcrm","id":10811010,"avatar_url":"https://avatars.githubusercontent.com/u/10811010?v=3","gravatar_id":"","url":"https://api.github.com/users/dduca-sugarcrm","html_url":"https://github.com/dduca-sugarcrm","followers_url":"https://api.github.com/users/dduca-sugarcrm/followers","following_url":"https://api.github.com/users/dduca-sugarcrm/following{/other_user}","gists_url":"https://api.github.com/users/dduca-sugarcrm/gists{/gist_id}","starred_url":"https://api.github.com/users/dduca-sugarcrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dduca-sugarcrm/subscriptions","organizations_url":"https://api.github.com/users/dduca-sugarcrm/orgs","repos_url":"https://api.github.com/users/dduca-sugarcrm/repos","events_url":"https://api.github.com/users/dduca-sugarcrm/events{/privacy}","received_events_url":"https://api.github.com/users/dduca-sugarcrm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dduca-sugarcrm/shadow","description":"Templating infrastructure for On-Demand","fork":true,"url":"https://api.github.com/repos/dduca-sugarcrm/shadow","forks_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/forks","keys_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/teams","hooks_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/hooks","issue_events_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/issues/events{/number}","events_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/events","assignees_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/assignees{/user}","branches_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/branches{/branch}","tags_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/tags","blobs_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/git/refs{/sha}","trees_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/statuses/{sha}","languages_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/languages","stargazers_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/stargazers","contributors_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/contributors","subscribers_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/subscribers","subscription_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/subscription","commits_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/commits{/sha}","git_commits_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/git/commits{/sha}","comments_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/comments{/number}","issue_comment_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/issues/comments{/number}","contents_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/contents/{+path}","compare_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/merges","archive_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/downloads","issues_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/issues{/number}","pulls_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/pulls{/number}","milestones_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/milestones{/number}","notifications_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/labels{/name}","releases_url":"https://api.github.com/repos/dduca-sugarcrm/shadow/releases{/id}","created_at":"2015-02-19T10:50:07Z","updated_at":"2015-04-01T08:05:32Z","pushed_at":"2015-04-18T08:38:05Z","git_url":"git://github.com/dduca-sugarcrm/shadow.git","ssh_url":"git@github.com:dduca-sugarcrm/shadow.git","clone_url":"https://github.com/dduca-sugarcrm/shadow.git","svn_url":"https://github.com/dduca-sugarcrm/shadow","homepage":"","size":300,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sugarcrm:master","ref":"master","sha":"cc90319c2b169b7c70850d797d9f6a2805c2fbb0","user":{"login":"sugarcrm","id":60142,"avatar_url":"https://avatars.githubusercontent.com/u/60142?v=3","gravatar_id":"","url":"https://api.github.com/users/sugarcrm","html_url":"https://github.com/sugarcrm","followers_url":"https://api.github.com/users/sugarcrm/followers","following_url":"https://api.github.com/users/sugarcrm/following{/other_user}","gists_url":"https://api.github.com/users/sugarcrm/gists{/gist_id}","starred_url":"https://api.github.com/users/sugarcrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sugarcrm/subscriptions","organizations_url":"https://api.github.com/users/sugarcrm/orgs","repos_url":"https://api.github.com/users/sugarcrm/repos","events_url":"https://api.github.com/users/sugarcrm/events{/privacy}","received_events_url":"https://api.github.com/users/sugarcrm/received_events","type":"Organization","site_admin":false},"repo":{"id":698060,"name":"shadow","full_name":"sugarcrm/shadow","owner":{"login":"sugarcrm","id":60142,"avatar_url":"https://avatars.githubusercontent.com/u/60142?v=3","gravatar_id":"","url":"https://api.github.com/users/sugarcrm","html_url":"https://github.com/sugarcrm","followers_url":"https://api.github.com/users/sugarcrm/followers","following_url":"https://api.github.com/users/sugarcrm/following{/other_user}","gists_url":"https://api.github.com/users/sugarcrm/gists{/gist_id}","starred_url":"https://api.github.com/users/sugarcrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sugarcrm/subscriptions","organizations_url":"https://api.github.com/users/sugarcrm/orgs","repos_url":"https://api.github.com/users/sugarcrm/repos","events_url":"https://api.github.com/users/sugarcrm/events{/privacy}","received_events_url":"https://api.github.com/users/sugarcrm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sugarcrm/shadow","description":"Templating infrastructure for On-Demand","fork":false,"url":"https://api.github.com/repos/sugarcrm/shadow","forks_url":"https://api.github.com/repos/sugarcrm/shadow/forks","keys_url":"https://api.github.com/repos/sugarcrm/shadow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sugarcrm/shadow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sugarcrm/shadow/teams","hooks_url":"https://api.github.com/repos/sugarcrm/shadow/hooks","issue_events_url":"https://api.github.com/repos/sugarcrm/shadow/issues/events{/number}","events_url":"https://api.github.com/repos/sugarcrm/shadow/events","assignees_url":"https://api.github.com/repos/sugarcrm/shadow/assignees{/user}","branches_url":"https://api.github.com/repos/sugarcrm/shadow/branches{/branch}","tags_url":"https://api.github.com/repos/sugarcrm/shadow/tags","blobs_url":"https://api.github.com/repos/sugarcrm/shadow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sugarcrm/shadow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sugarcrm/shadow/git/refs{/sha}","trees_url":"https://api.github.com/repos/sugarcrm/shadow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sugarcrm/shadow/statuses/{sha}","languages_url":"https://api.github.com/repos/sugarcrm/shadow/languages","stargazers_url":"https://api.github.com/repos/sugarcrm/shadow/stargazers","contributors_url":"https://api.github.com/repos/sugarcrm/shadow/contributors","subscribers_url":"https://api.github.com/repos/sugarcrm/shadow/subscribers","subscription_url":"https://api.github.com/repos/sugarcrm/shadow/subscription","commits_url":"https://api.github.com/repos/sugarcrm/shadow/commits{/sha}","git_commits_url":"https://api.github.com/repos/sugarcrm/shadow/git/commits{/sha}","comments_url":"https://api.github.com/repos/sugarcrm/shadow/comments{/number}","issue_comment_url":"https://api.github.com/repos/sugarcrm/shadow/issues/comments{/number}","contents_url":"https://api.github.com/repos/sugarcrm/shadow/contents/{+path}","compare_url":"https://api.github.com/repos/sugarcrm/shadow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sugarcrm/shadow/merges","archive_url":"https://api.github.com/repos/sugarcrm/shadow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sugarcrm/shadow/downloads","issues_url":"https://api.github.com/repos/sugarcrm/shadow/issues{/number}","pulls_url":"https://api.github.com/repos/sugarcrm/shadow/pulls{/number}","milestones_url":"https://api.github.com/repos/sugarcrm/shadow/milestones{/number}","notifications_url":"https://api.github.com/repos/sugarcrm/shadow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sugarcrm/shadow/labels{/name}","releases_url":"https://api.github.com/repos/sugarcrm/shadow/releases{/id}","created_at":"2010-06-01T21:13:38Z","updated_at":"2015-02-09T14:03:08Z","pushed_at":"2015-04-18T08:34:26Z","git_url":"git://github.com/sugarcrm/shadow.git","ssh_url":"git@github.com:sugarcrm/shadow.git","clone_url":"https://github.com/sugarcrm/shadow.git","svn_url":"https://github.com/sugarcrm/shadow","homepage":"","size":513,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sugarcrm/shadow/pulls/3"},"html":{"href":"https://github.com/sugarcrm/shadow/pull/3"},"issue":{"href":"https://api.github.com/repos/sugarcrm/shadow/issues/3"},"comments":{"href":"https://api.github.com/repos/sugarcrm/shadow/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/sugarcrm/shadow/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/sugarcrm/shadow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sugarcrm/shadow/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/sugarcrm/shadow/statuses/6e18924f065e90ec64b5f1b3aafc43709b53ad63"}}}}