{"action":"opened","number":187,"pull_request":{"url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/pulls/187","id":48881684,"html_url":"https://github.com/AOEpeople/Aoe_Scheduler/pull/187","diff_url":"https://github.com/AOEpeople/Aoe_Scheduler/pull/187.diff","patch_url":"https://github.com/AOEpeople/Aoe_Scheduler/pull/187.patch","issue_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/issues/187","number":187,"state":"open","locked":false,"title":"Allow script execution outside of shell folder when using symlinks","user":{"login":"aadmathijssen","id":3796971,"avatar_url":"https://avatars.githubusercontent.com/u/3796971?v=3","gravatar_id":"","url":"https://api.github.com/users/aadmathijssen","html_url":"https://github.com/aadmathijssen","followers_url":"https://api.github.com/users/aadmathijssen/followers","following_url":"https://api.github.com/users/aadmathijssen/following{/other_user}","gists_url":"https://api.github.com/users/aadmathijssen/gists{/gist_id}","starred_url":"https://api.github.com/users/aadmathijssen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aadmathijssen/subscriptions","organizations_url":"https://api.github.com/users/aadmathijssen/orgs","repos_url":"https://api.github.com/users/aadmathijssen/repos","events_url":"https://api.github.com/users/aadmathijssen/events{/privacy}","received_events_url":"https://api.github.com/users/aadmathijssen/received_events","type":"User","site_admin":false},"body":"When the Aoe_Scheduler module is installed via composer using symlinks, the `shell/scheduler.php` can only be run from within the `shell` folder itself.\r\n\r\nRunning the script from outside the `shell` folder, results in the following error:\r\n\r\n```\r\nPHP Warning:  require_once(abstract.php): failed to open stream: No such file or directory in /PATH/TO/MAGENTO/vendor/aoepeople/aoe_scheduler/shell/scheduler.php on line 3\r\n\r\nWarning: require_once(abstract.php): failed to open stream: No such file or directory in /PATH/TO/MAGENTO//vendor/aoepeople/aoe_scheduler/shell/scheduler.php on line 3\r\nPHP Fatal error:  require_once(): Failed opening required 'abstract.php' (include_path='.:') in /PATH/TO/MAGENTO/vendor/aoepeople/aoe_scheduler/shell/scheduler.php on line 3\r\n\r\nFatal error: require_once(): Failed opening required 'abstract.php' (include_path='.:') in /PATH/TO/MAGENTO/vendor/aoepeople/aoe_scheduler/shell/scheduler.php on line 3\r\n```\r\n\r\nThis pull request resolves this issue by using the dirname of the  `SCRIPT_NAME` server variable to obtain the current script directory\r\n\r\nNote that `__DIR__` cannot be used, as this variable returns the current script directory in which symlinks have been resolved.","created_at":"2015-10-27T14:55:47Z","updated_at":"2015-10-27T14:55:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/pulls/187/commits","review_comments_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/pulls/187/comments","review_comment_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/issues/187/comments","statuses_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/statuses/6e85bcd681ead484410bef17e1c78bddf980bc04","head":{"label":"aadmathijssen:fix-script-execution-outside-of-shell-folder-when-using-symlinks","ref":"fix-script-execution-outside-of-shell-folder-when-using-symlinks","sha":"6e85bcd681ead484410bef17e1c78bddf980bc04","user":{"login":"aadmathijssen","id":3796971,"avatar_url":"https://avatars.githubusercontent.com/u/3796971?v=3","gravatar_id":"","url":"https://api.github.com/users/aadmathijssen","html_url":"https://github.com/aadmathijssen","followers_url":"https://api.github.com/users/aadmathijssen/followers","following_url":"https://api.github.com/users/aadmathijssen/following{/other_user}","gists_url":"https://api.github.com/users/aadmathijssen/gists{/gist_id}","starred_url":"https://api.github.com/users/aadmathijssen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aadmathijssen/subscriptions","organizations_url":"https://api.github.com/users/aadmathijssen/orgs","repos_url":"https://api.github.com/users/aadmathijssen/repos","events_url":"https://api.github.com/users/aadmathijssen/events{/privacy}","received_events_url":"https://api.github.com/users/aadmathijssen/received_events","type":"User","site_admin":false},"repo":{"id":45046955,"name":"Aoe_Scheduler","full_name":"aadmathijssen/Aoe_Scheduler","owner":{"login":"aadmathijssen","id":3796971,"avatar_url":"https://avatars.githubusercontent.com/u/3796971?v=3","gravatar_id":"","url":"https://api.github.com/users/aadmathijssen","html_url":"https://github.com/aadmathijssen","followers_url":"https://api.github.com/users/aadmathijssen/followers","following_url":"https://api.github.com/users/aadmathijssen/following{/other_user}","gists_url":"https://api.github.com/users/aadmathijssen/gists{/gist_id}","starred_url":"https://api.github.com/users/aadmathijssen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aadmathijssen/subscriptions","organizations_url":"https://api.github.com/users/aadmathijssen/orgs","repos_url":"https://api.github.com/users/aadmathijssen/repos","events_url":"https://api.github.com/users/aadmathijssen/events{/privacy}","received_events_url":"https://api.github.com/users/aadmathijssen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aadmathijssen/Aoe_Scheduler","description":"Cron Scheduler Module for Magento","fork":true,"url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler","forks_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/forks","keys_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/teams","hooks_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/hooks","issue_events_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/issues/events{/number}","events_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/events","assignees_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/assignees{/user}","branches_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/branches{/branch}","tags_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/tags","blobs_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/git/refs{/sha}","trees_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/statuses/{sha}","languages_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/languages","stargazers_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/stargazers","contributors_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/contributors","subscribers_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/subscribers","subscription_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/subscription","commits_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/commits{/sha}","git_commits_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/git/commits{/sha}","comments_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/comments{/number}","issue_comment_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/issues/comments{/number}","contents_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/contents/{+path}","compare_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/merges","archive_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/downloads","issues_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/issues{/number}","pulls_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/pulls{/number}","milestones_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/milestones{/number}","notifications_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/labels{/name}","releases_url":"https://api.github.com/repos/aadmathijssen/Aoe_Scheduler/releases{/id}","created_at":"2015-10-27T14:35:36Z","updated_at":"2015-10-27T14:35:37Z","pushed_at":"2015-10-27T14:46:05Z","git_url":"git://github.com/aadmathijssen/Aoe_Scheduler.git","ssh_url":"git@github.com:aadmathijssen/Aoe_Scheduler.git","clone_url":"https://github.com/aadmathijssen/Aoe_Scheduler.git","svn_url":"https://github.com/aadmathijssen/Aoe_Scheduler","homepage":"http://www.fabrizio-branca.de/magento-cron-scheduler.html","size":2555,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"AOEpeople:master","ref":"master","sha":"e4fa005a36bee415ebaf972e394d85f3992275d9","user":{"login":"AOEpeople","id":6331769,"avatar_url":"https://avatars.githubusercontent.com/u/6331769?v=3","gravatar_id":"","url":"https://api.github.com/users/AOEpeople","html_url":"https://github.com/AOEpeople","followers_url":"https://api.github.com/users/AOEpeople/followers","following_url":"https://api.github.com/users/AOEpeople/following{/other_user}","gists_url":"https://api.github.com/users/AOEpeople/gists{/gist_id}","starred_url":"https://api.github.com/users/AOEpeople/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AOEpeople/subscriptions","organizations_url":"https://api.github.com/users/AOEpeople/orgs","repos_url":"https://api.github.com/users/AOEpeople/repos","events_url":"https://api.github.com/users/AOEpeople/events{/privacy}","received_events_url":"https://api.github.com/users/AOEpeople/received_events","type":"Organization","site_admin":false},"repo":{"id":1727480,"name":"Aoe_Scheduler","full_name":"AOEpeople/Aoe_Scheduler","owner":{"login":"AOEpeople","id":6331769,"avatar_url":"https://avatars.githubusercontent.com/u/6331769?v=3","gravatar_id":"","url":"https://api.github.com/users/AOEpeople","html_url":"https://github.com/AOEpeople","followers_url":"https://api.github.com/users/AOEpeople/followers","following_url":"https://api.github.com/users/AOEpeople/following{/other_user}","gists_url":"https://api.github.com/users/AOEpeople/gists{/gist_id}","starred_url":"https://api.github.com/users/AOEpeople/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AOEpeople/subscriptions","organizations_url":"https://api.github.com/users/AOEpeople/orgs","repos_url":"https://api.github.com/users/AOEpeople/repos","events_url":"https://api.github.com/users/AOEpeople/events{/privacy}","received_events_url":"https://api.github.com/users/AOEpeople/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AOEpeople/Aoe_Scheduler","description":"Cron Scheduler Module for Magento","fork":false,"url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler","forks_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/forks","keys_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/teams","hooks_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/hooks","issue_events_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/issues/events{/number}","events_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/events","assignees_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/assignees{/user}","branches_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/branches{/branch}","tags_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/tags","blobs_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/git/refs{/sha}","trees_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/statuses/{sha}","languages_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/languages","stargazers_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/stargazers","contributors_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/contributors","subscribers_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/subscribers","subscription_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/subscription","commits_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/commits{/sha}","git_commits_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/git/commits{/sha}","comments_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/comments{/number}","issue_comment_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/issues/comments{/number}","contents_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/contents/{+path}","compare_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/merges","archive_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/downloads","issues_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/issues{/number}","pulls_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/pulls{/number}","milestones_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/milestones{/number}","notifications_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/labels{/name}","releases_url":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/releases{/id}","created_at":"2011-05-10T11:19:37Z","updated_at":"2015-10-27T11:39:02Z","pushed_at":"2015-10-23T08:28:57Z","git_url":"git://github.com/AOEpeople/Aoe_Scheduler.git","ssh_url":"git@github.com:AOEpeople/Aoe_Scheduler.git","clone_url":"https://github.com/AOEpeople/Aoe_Scheduler.git","svn_url":"https://github.com/AOEpeople/Aoe_Scheduler","homepage":"http://www.fabrizio-branca.de/magento-cron-scheduler.html","size":2555,"stargazers_count":209,"watchers_count":209,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":111,"mirror_url":null,"open_issues_count":70,"forks":111,"open_issues":70,"watchers":209,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/pulls/187"},"html":{"href":"https://github.com/AOEpeople/Aoe_Scheduler/pull/187"},"issue":{"href":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/issues/187"},"comments":{"href":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/issues/187/comments"},"review_comments":{"href":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/pulls/187/comments"},"review_comment":{"href":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/pulls/187/commits"},"statuses":{"href":"https://api.github.com/repos/AOEpeople/Aoe_Scheduler/statuses/6e85bcd681ead484410bef17e1c78bddf980bc04"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}