{"action":"opened","number":3567,"pull_request":{"url":"https://api.github.com/repos/php/php-src/pulls/3567","id":219343379,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5MzQzMzc5","html_url":"https://github.com/php/php-src/pull/3567","diff_url":"https://github.com/php/php-src/pull/3567.diff","patch_url":"https://github.com/php/php-src/pull/3567.patch","issue_url":"https://api.github.com/repos/php/php-src/issues/3567","number":3567,"state":"open","locked":false,"title":"Optimize MySQL statement execute without parameter.","user":{"login":"twose","id":25978241,"node_id":"MDQ6VXNlcjI1OTc4MjQx","avatar_url":"https://avatars0.githubusercontent.com/u/25978241?v=4","gravatar_id":"","url":"https://api.github.com/users/twose","html_url":"https://github.com/twose","followers_url":"https://api.github.com/users/twose/followers","following_url":"https://api.github.com/users/twose/following{/other_user}","gists_url":"https://api.github.com/users/twose/gists{/gist_id}","starred_url":"https://api.github.com/users/twose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twose/subscriptions","organizations_url":"https://api.github.com/users/twose/orgs","repos_url":"https://api.github.com/users/twose/repos","events_url":"https://api.github.com/users/twose/events{/privacy}","received_events_url":"https://api.github.com/users/twose/received_events","type":"User","site_admin":false},"body":"Hi, I notice that when I use MySQL statement execute without params,  there are be some extra unnecessary bytes in the package after iterations,  so I added a judgment here.\r\nThe mysqlnd is a bit complicated, I don't know if it will cause other effects.\r\n\r\n---\r\nexample\r\n---\r\n```php\r\n$pdo = new PDO(\"mysql:host=127.0.0.1;dbname=test;charset=utf8\", 'root', 'root');\r\n$pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);\r\n$stmt = $pdo->prepare('select * from userinfo LIMIT 1');\r\n$stmt->execute();\r\n```\r\nbefore\r\n---\r\n![image](https://user-images.githubusercontent.com/25978241/46285927-d6e3c480-c5af-11e8-8969-2345bc2f253c.png)\r\nafter\r\n---\r\n![image](https://user-images.githubusercontent.com/25978241/46285932-d9461e80-c5af-11e8-9639-9e426079e6c9.png)\r\n","created_at":"2018-10-01T11:31:21Z","updated_at":"2018-10-01T11:31:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/php/php-src/pulls/3567/commits","review_comments_url":"https://api.github.com/repos/php/php-src/pulls/3567/comments","review_comment_url":"https://api.github.com/repos/php/php-src/pulls/comments{/number}","comments_url":"https://api.github.com/repos/php/php-src/issues/3567/comments","statuses_url":"https://api.github.com/repos/php/php-src/statuses/bba0b184afa5425f5b898d3872b16521940173e8","head":{"label":"twose:mysqlnd_execute","ref":"mysqlnd_execute","sha":"bba0b184afa5425f5b898d3872b16521940173e8","user":{"login":"twose","id":25978241,"node_id":"MDQ6VXNlcjI1OTc4MjQx","avatar_url":"https://avatars0.githubusercontent.com/u/25978241?v=4","gravatar_id":"","url":"https://api.github.com/users/twose","html_url":"https://github.com/twose","followers_url":"https://api.github.com/users/twose/followers","following_url":"https://api.github.com/users/twose/following{/other_user}","gists_url":"https://api.github.com/users/twose/gists{/gist_id}","starred_url":"https://api.github.com/users/twose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twose/subscriptions","organizations_url":"https://api.github.com/users/twose/orgs","repos_url":"https://api.github.com/users/twose/repos","events_url":"https://api.github.com/users/twose/events{/privacy}","received_events_url":"https://api.github.com/users/twose/received_events","type":"User","site_admin":false},"repo":{"id":126365331,"node_id":"MDEwOlJlcG9zaXRvcnkxMjYzNjUzMzE=","name":"php-src","full_name":"twose/php-src","private":false,"owner":{"login":"twose","id":25978241,"node_id":"MDQ6VXNlcjI1OTc4MjQx","avatar_url":"https://avatars0.githubusercontent.com/u/25978241?v=4","gravatar_id":"","url":"https://api.github.com/users/twose","html_url":"https://github.com/twose","followers_url":"https://api.github.com/users/twose/followers","following_url":"https://api.github.com/users/twose/following{/other_user}","gists_url":"https://api.github.com/users/twose/gists{/gist_id}","starred_url":"https://api.github.com/users/twose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twose/subscriptions","organizations_url":"https://api.github.com/users/twose/orgs","repos_url":"https://api.github.com/users/twose/repos","events_url":"https://api.github.com/users/twose/events{/privacy}","received_events_url":"https://api.github.com/users/twose/received_events","type":"User","site_admin":false},"html_url":"https://github.com/twose/php-src","description":"The PHP Interpreter","fork":true,"url":"https://api.github.com/repos/twose/php-src","forks_url":"https://api.github.com/repos/twose/php-src/forks","keys_url":"https://api.github.com/repos/twose/php-src/keys{/key_id}","collaborators_url":"https://api.github.com/repos/twose/php-src/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/twose/php-src/teams","hooks_url":"https://api.github.com/repos/twose/php-src/hooks","issue_events_url":"https://api.github.com/repos/twose/php-src/issues/events{/number}","events_url":"https://api.github.com/repos/twose/php-src/events","assignees_url":"https://api.github.com/repos/twose/php-src/assignees{/user}","branches_url":"https://api.github.com/repos/twose/php-src/branches{/branch}","tags_url":"https://api.github.com/repos/twose/php-src/tags","blobs_url":"https://api.github.com/repos/twose/php-src/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/twose/php-src/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/twose/php-src/git/refs{/sha}","trees_url":"https://api.github.com/repos/twose/php-src/git/trees{/sha}","statuses_url":"https://api.github.com/repos/twose/php-src/statuses/{sha}","languages_url":"https://api.github.com/repos/twose/php-src/languages","stargazers_url":"https://api.github.com/repos/twose/php-src/stargazers","contributors_url":"https://api.github.com/repos/twose/php-src/contributors","subscribers_url":"https://api.github.com/repos/twose/php-src/subscribers","subscription_url":"https://api.github.com/repos/twose/php-src/subscription","commits_url":"https://api.github.com/repos/twose/php-src/commits{/sha}","git_commits_url":"https://api.github.com/repos/twose/php-src/git/commits{/sha}","comments_url":"https://api.github.com/repos/twose/php-src/comments{/number}","issue_comment_url":"https://api.github.com/repos/twose/php-src/issues/comments{/number}","contents_url":"https://api.github.com/repos/twose/php-src/contents/{+path}","compare_url":"https://api.github.com/repos/twose/php-src/compare/{base}...{head}","merges_url":"https://api.github.com/repos/twose/php-src/merges","archive_url":"https://api.github.com/repos/twose/php-src/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/twose/php-src/downloads","issues_url":"https://api.github.com/repos/twose/php-src/issues{/number}","pulls_url":"https://api.github.com/repos/twose/php-src/pulls{/number}","milestones_url":"https://api.github.com/repos/twose/php-src/milestones{/number}","notifications_url":"https://api.github.com/repos/twose/php-src/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/twose/php-src/labels{/name}","releases_url":"https://api.github.com/repos/twose/php-src/releases{/id}","deployments_url":"https://api.github.com/repos/twose/php-src/deployments","created_at":"2018-03-22T16:37:13Z","updated_at":"2018-09-28T15:59:53Z","pushed_at":"2018-10-01T11:22:59Z","git_url":"git://github.com/twose/php-src.git","ssh_url":"git@github.com:twose/php-src.git","clone_url":"https://github.com/twose/php-src.git","svn_url":"https://github.com/twose/php-src","homepage":"http://www.php.net","size":322749,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"php:master","ref":"master","sha":"250b577258ba9a736a15527f211ba52c9368d322","user":{"login":"php","id":25158,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MTU4","avatar_url":"https://avatars2.githubusercontent.com/u/25158?v=4","gravatar_id":"","url":"https://api.github.com/users/php","html_url":"https://github.com/php","followers_url":"https://api.github.com/users/php/followers","following_url":"https://api.github.com/users/php/following{/other_user}","gists_url":"https://api.github.com/users/php/gists{/gist_id}","starred_url":"https://api.github.com/users/php/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/php/subscriptions","organizations_url":"https://api.github.com/users/php/orgs","repos_url":"https://api.github.com/users/php/repos","events_url":"https://api.github.com/users/php/events{/privacy}","received_events_url":"https://api.github.com/users/php/received_events","type":"Organization","site_admin":false},"repo":{"id":1903522,"node_id":"MDEwOlJlcG9zaXRvcnkxOTAzNTIy","name":"php-src","full_name":"php/php-src","private":false,"owner":{"login":"php","id":25158,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MTU4","avatar_url":"https://avatars2.githubusercontent.com/u/25158?v=4","gravatar_id":"","url":"https://api.github.com/users/php","html_url":"https://github.com/php","followers_url":"https://api.github.com/users/php/followers","following_url":"https://api.github.com/users/php/following{/other_user}","gists_url":"https://api.github.com/users/php/gists{/gist_id}","starred_url":"https://api.github.com/users/php/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/php/subscriptions","organizations_url":"https://api.github.com/users/php/orgs","repos_url":"https://api.github.com/users/php/repos","events_url":"https://api.github.com/users/php/events{/privacy}","received_events_url":"https://api.github.com/users/php/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/php/php-src","description":"The PHP Interpreter","fork":false,"url":"https://api.github.com/repos/php/php-src","forks_url":"https://api.github.com/repos/php/php-src/forks","keys_url":"https://api.github.com/repos/php/php-src/keys{/key_id}","collaborators_url":"https://api.github.com/repos/php/php-src/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/php/php-src/teams","hooks_url":"https://api.github.com/repos/php/php-src/hooks","issue_events_url":"https://api.github.com/repos/php/php-src/issues/events{/number}","events_url":"https://api.github.com/repos/php/php-src/events","assignees_url":"https://api.github.com/repos/php/php-src/assignees{/user}","branches_url":"https://api.github.com/repos/php/php-src/branches{/branch}","tags_url":"https://api.github.com/repos/php/php-src/tags","blobs_url":"https://api.github.com/repos/php/php-src/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/php/php-src/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/php/php-src/git/refs{/sha}","trees_url":"https://api.github.com/repos/php/php-src/git/trees{/sha}","statuses_url":"https://api.github.com/repos/php/php-src/statuses/{sha}","languages_url":"https://api.github.com/repos/php/php-src/languages","stargazers_url":"https://api.github.com/repos/php/php-src/stargazers","contributors_url":"https://api.github.com/repos/php/php-src/contributors","subscribers_url":"https://api.github.com/repos/php/php-src/subscribers","subscription_url":"https://api.github.com/repos/php/php-src/subscription","commits_url":"https://api.github.com/repos/php/php-src/commits{/sha}","git_commits_url":"https://api.github.com/repos/php/php-src/git/commits{/sha}","comments_url":"https://api.github.com/repos/php/php-src/comments{/number}","issue_comment_url":"https://api.github.com/repos/php/php-src/issues/comments{/number}","contents_url":"https://api.github.com/repos/php/php-src/contents/{+path}","compare_url":"https://api.github.com/repos/php/php-src/compare/{base}...{head}","merges_url":"https://api.github.com/repos/php/php-src/merges","archive_url":"https://api.github.com/repos/php/php-src/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/php/php-src/downloads","issues_url":"https://api.github.com/repos/php/php-src/issues{/number}","pulls_url":"https://api.github.com/repos/php/php-src/pulls{/number}","milestones_url":"https://api.github.com/repos/php/php-src/milestones{/number}","notifications_url":"https://api.github.com/repos/php/php-src/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/php/php-src/labels{/name}","releases_url":"https://api.github.com/repos/php/php-src/releases{/id}","deployments_url":"https://api.github.com/repos/php/php-src/deployments","created_at":"2011-06-16T01:52:25Z","updated_at":"2018-10-01T11:12:29Z","pushed_at":"2018-10-01T11:12:15Z","git_url":"git://github.com/php/php-src.git","ssh_url":"git@github.com:php/php-src.git","clone_url":"https://github.com/php/php-src.git","svn_url":"https://github.com/php/php-src","homepage":"http://www.php.net","size":323110,"stargazers_count":19619,"watchers_count":19619,"language":"C","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5013,"mirror_url":null,"archived":false,"open_issues_count":159,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":5013,"open_issues":159,"watchers":19619,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/php/php-src/pulls/3567"},"html":{"href":"https://github.com/php/php-src/pull/3567"},"issue":{"href":"https://api.github.com/repos/php/php-src/issues/3567"},"comments":{"href":"https://api.github.com/repos/php/php-src/issues/3567/comments"},"review_comments":{"href":"https://api.github.com/repos/php/php-src/pulls/3567/comments"},"review_comment":{"href":"https://api.github.com/repos/php/php-src/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/php/php-src/pulls/3567/commits"},"statuses":{"href":"https://api.github.com/repos/php/php-src/statuses/bba0b184afa5425f5b898d3872b16521940173e8"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":4,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"twose"}}