{"action":"created","issue":{"url":"https://api.github.com/repos/developerforce/Force.com-Toolkit-for-PHP/issues/44","labels_url":"https://api.github.com/repos/developerforce/Force.com-Toolkit-for-PHP/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/developerforce/Force.com-Toolkit-for-PHP/issues/44/comments","events_url":"https://api.github.com/repos/developerforce/Force.com-Toolkit-for-PHP/issues/44/events","html_url":"https://github.com/developerforce/Force.com-Toolkit-for-PHP/issues/44","id":104946550,"number":44,"title":"Broken queries with LIMIT 1","user":{"login":"jp7carlos","id":4670443,"avatar_url":"https://avatars.githubusercontent.com/u/4670443?v=3","gravatar_id":"","url":"https://api.github.com/users/jp7carlos","html_url":"https://github.com/jp7carlos","followers_url":"https://api.github.com/users/jp7carlos/followers","following_url":"https://api.github.com/users/jp7carlos/following{/other_user}","gists_url":"https://api.github.com/users/jp7carlos/gists{/gist_id}","starred_url":"https://api.github.com/users/jp7carlos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jp7carlos/subscriptions","organizations_url":"https://api.github.com/users/jp7carlos/orgs","repos_url":"https://api.github.com/users/jp7carlos/repos","events_url":"https://api.github.com/users/jp7carlos/events{/privacy}","received_events_url":"https://api.github.com/users/jp7carlos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-04T18:45:15Z","updated_at":"2015-09-21T18:01:52Z","closed_at":null,"body":"This commit from 2012 broke queries with LIMIT 1:\r\nhttps://github.com/developerforce/Force.com-Toolkit-for-PHP/commit/489650583ab8bf945306147aaa48933bc3680658\r\n\r\nIt pushes $record when there is no $record variable defined.\r\n"},"comment":{"url":"https://api.github.com/repos/developerforce/Force.com-Toolkit-for-PHP/issues/comments/142062293","html_url":"https://github.com/developerforce/Force.com-Toolkit-for-PHP/issues/44#issuecomment-142062293","issue_url":"https://api.github.com/repos/developerforce/Force.com-Toolkit-for-PHP/issues/44","id":142062293,"user":{"login":"metadaddy-sfdc","id":723517,"avatar_url":"https://avatars.githubusercontent.com/u/723517?v=3","gravatar_id":"","url":"https://api.github.com/users/metadaddy-sfdc","html_url":"https://github.com/metadaddy-sfdc","followers_url":"https://api.github.com/users/metadaddy-sfdc/followers","following_url":"https://api.github.com/users/metadaddy-sfdc/following{/other_user}","gists_url":"https://api.github.com/users/metadaddy-sfdc/gists{/gist_id}","starred_url":"https://api.github.com/users/metadaddy-sfdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metadaddy-sfdc/subscriptions","organizations_url":"https://api.github.com/users/metadaddy-sfdc/orgs","repos_url":"https://api.github.com/users/metadaddy-sfdc/repos","events_url":"https://api.github.com/users/metadaddy-sfdc/events{/privacy}","received_events_url":"https://api.github.com/users/metadaddy-sfdc/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T18:01:52Z","updated_at":"2015-09-21T18:01:52Z","body":"That's odd - the 'else' branch is never executed when I run it, probably because we select the `SOAP_SINGLE_ELEMENT_ARRAYS` feature when we create the SOAP client.\r\n\r\nWhat version of PHP are you running? What do you see when you do this after the query:\r\n\r\n\techo \"getLastRequest()\\n\";\r\n\techo $connection->getLastRequest();\r\n\techo \"\\n\";\r\n\r\n\techo \"getLastResponse()\\n\";\r\n\techo $connection->getLastResponse();\r\n\techo \"\\n\";"}}