{"action":"created","issue":{"url":"https://api.github.com/repos/apkoponen/wp-rest-api-oauth2/issues/4","repository_url":"https://api.github.com/repos/apkoponen/wp-rest-api-oauth2","labels_url":"https://api.github.com/repos/apkoponen/wp-rest-api-oauth2/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/apkoponen/wp-rest-api-oauth2/issues/4/comments","events_url":"https://api.github.com/repos/apkoponen/wp-rest-api-oauth2/issues/4/events","html_url":"https://github.com/apkoponen/wp-rest-api-oauth2/issues/4","id":188022478,"number":4,"title":"wp_delete_post causes SIGSEGV","user":{"login":"larssn","id":890725,"avatar_url":"https://avatars.githubusercontent.com/u/890725?v=3","gravatar_id":"","url":"https://api.github.com/users/larssn","html_url":"https://github.com/larssn","followers_url":"https://api.github.com/users/larssn/followers","following_url":"https://api.github.com/users/larssn/following{/other_user}","gists_url":"https://api.github.com/users/larssn/gists{/gist_id}","starred_url":"https://api.github.com/users/larssn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larssn/subscriptions","organizations_url":"https://api.github.com/users/larssn/orgs","repos_url":"https://api.github.com/users/larssn/repos","events_url":"https://api.github.com/users/larssn/events{/privacy}","received_events_url":"https://api.github.com/users/larssn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-08T15:31:40Z","updated_at":"2016-11-08T18:40:41Z","closed_at":null,"body":"Hey\r\n\r\nSo I'm currently testing how the code handles expired access_tokens.\r\n\r\nI'm seeing an infinite loop. PHP-FPM makes a SIGSEGV after it has entered wp_delete_post on line 172'ish in class-oa2-token.php, which is odd.\r\nSo the child process dies, and phpfpm retries the entire operation again, but dying in the exact same spot. This is the only SIGSEGV that has ever happened on the server.\r\n\r\nI've reported it to the php-fpm people, but I don't have high hopes about getting anything meaningful out of that.\r\n\r\nIdeas?\r\n\r\nThis is on PHP 7.0.12, WP 4.6.1 and NGINX 1.11.5."},"comment":{"url":"https://api.github.com/repos/apkoponen/wp-rest-api-oauth2/issues/comments/259221794","html_url":"https://github.com/apkoponen/wp-rest-api-oauth2/issues/4#issuecomment-259221794","issue_url":"https://api.github.com/repos/apkoponen/wp-rest-api-oauth2/issues/4","id":259221794,"user":{"login":"apkoponen","id":5046650,"avatar_url":"https://avatars.githubusercontent.com/u/5046650?v=3","gravatar_id":"","url":"https://api.github.com/users/apkoponen","html_url":"https://github.com/apkoponen","followers_url":"https://api.github.com/users/apkoponen/followers","following_url":"https://api.github.com/users/apkoponen/following{/other_user}","gists_url":"https://api.github.com/users/apkoponen/gists{/gist_id}","starred_url":"https://api.github.com/users/apkoponen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apkoponen/subscriptions","organizations_url":"https://api.github.com/users/apkoponen/orgs","repos_url":"https://api.github.com/users/apkoponen/repos","events_url":"https://api.github.com/users/apkoponen/events{/privacy}","received_events_url":"https://api.github.com/users/apkoponen/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T18:40:41Z","updated_at":"2016-11-08T18:40:41Z","body":"I tried to reproduce the bug with the following steps (nginx/1.9.10, PHP Version 5.5.9-1ubuntu4.14):\r\n1) Install latest WordPress & WooCommerce.\r\n2) Create an access token.\r\n3) Change the access token expiration in the wp_postmeta table to the past.\r\n4) Try to GET /wp-json/wc/v1/orders with header Authorization: Bearer <TOKEN_HERE>\r\n\r\nResult: The token is deleted from the database along with all of it's meta and the server responds with a 401:\r\n```\r\n{\r\n  \"code\": \"rest_oauth2_token_not_exists\",\r\n  \"message\": \"Valtuutta ei ole olemassa.\",\r\n  \"data\": {\r\n    \"status\": 401\r\n  }\r\n}\r\n```"}}
{"actor":{"display_login":"apkoponen"}}