{"action":"created","issue":{"url":"https://api.github.com/repos/Needlworks/Textcube/issues/1832","labels_url":"https://api.github.com/repos/Needlworks/Textcube/issues/1832/labels{/name}","comments_url":"https://api.github.com/repos/Needlworks/Textcube/issues/1832/comments","events_url":"https://api.github.com/repos/Needlworks/Textcube/issues/1832/events","html_url":"https://github.com/Needlworks/Textcube/issues/1832","id":110037413,"number":1832,"title":"mysqli extension만 on 되어 있을 경우 버그","user":{"login":"Joungkyun","id":7565963,"avatar_url":"https://avatars.githubusercontent.com/u/7565963?v=3","gravatar_id":"","url":"https://api.github.com/users/Joungkyun","html_url":"https://github.com/Joungkyun","followers_url":"https://api.github.com/users/Joungkyun/followers","following_url":"https://api.github.com/users/Joungkyun/following{/other_user}","gists_url":"https://api.github.com/users/Joungkyun/gists{/gist_id}","starred_url":"https://api.github.com/users/Joungkyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joungkyun/subscriptions","organizations_url":"https://api.github.com/users/Joungkyun/orgs","repos_url":"https://api.github.com/users/Joungkyun/repos","events_url":"https://api.github.com/users/Joungkyun/events{/privacy}","received_events_url":"https://api.github.com/users/Joungkyun/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Needlworks/Textcube/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Needlworks/Textcube/labels/major","name":"major","color":"b22222"}],"state":"open","locked":false,"assignee":{"login":"inureyes","id":949915,"avatar_url":"https://avatars.githubusercontent.com/u/949915?v=3","gravatar_id":"","url":"https://api.github.com/users/inureyes","html_url":"https://github.com/inureyes","followers_url":"https://api.github.com/users/inureyes/followers","following_url":"https://api.github.com/users/inureyes/following{/other_user}","gists_url":"https://api.github.com/users/inureyes/gists{/gist_id}","starred_url":"https://api.github.com/users/inureyes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inureyes/subscriptions","organizations_url":"https://api.github.com/users/inureyes/orgs","repos_url":"https://api.github.com/users/inureyes/repos","events_url":"https://api.github.com/users/inureyes/events{/privacy}","received_events_url":"https://api.github.com/users/inureyes/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Needlworks/Textcube/milestones/55","html_url":"https://github.com/Needlworks/Textcube/milestones/1.10.8","labels_url":"https://api.github.com/repos/Needlworks/Textcube/milestones/55/labels","id":1148695,"number":55,"title":"1.10.8","description":" * This milestone is for security patches.","creator":{"login":"inureyes","id":949915,"avatar_url":"https://avatars.githubusercontent.com/u/949915?v=3","gravatar_id":"","url":"https://api.github.com/users/inureyes","html_url":"https://github.com/inureyes","followers_url":"https://api.github.com/users/inureyes/followers","following_url":"https://api.github.com/users/inureyes/following{/other_user}","gists_url":"https://api.github.com/users/inureyes/gists{/gist_id}","starred_url":"https://api.github.com/users/inureyes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inureyes/subscriptions","organizations_url":"https://api.github.com/users/inureyes/orgs","repos_url":"https://api.github.com/users/inureyes/repos","events_url":"https://api.github.com/users/inureyes/events{/privacy}","received_events_url":"https://api.github.com/users/inureyes/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":2,"state":"open","created_at":"2015-06-04T04:50:30Z","updated_at":"2015-10-13T08:51:14Z","due_on":"2015-06-17T15:00:00Z","closed_at":null},"comments":1,"created_at":"2015-10-06T15:36:14Z","updated_at":"2015-10-13T08:51:32Z","closed_at":null,"body":"시스템에 mysql extension이 비활성 되어 있고, mysqli만 활성 되어 있을 경우 동작 버그\r\n\r\nmysqli adapter에서 MYSQL constant를 사용하고 있어서 발생하는 문제. 1.10.7 까지 존재함.. 업데이트 마다 귀찮아서 결국 보고함 --;\r\n\r\n```diff\r\ndiff -urNp my.orig/framework/data/MySQLi/Adapter.php my/framework/data/MySQLi/Adapter.php\r\n--- my.orig/framework/data/MySQLi/Adapter.php   2015-10-07 00:13:14.492965878 +0900\r\n+++ my/framework/data/MySQLi/Adapter.php    2015-10-07 00:10:53.307841000 +0900\r\n@@ -130,11 +130,11 @@ class DBAdapter implements IAdapter {\r\n    }\r\n\r\n    public static function queryCell($query, $field = 0, $useCache=true) {\r\n-       $type = MYSQL_BOTH;\r\n+       $type = MYSQLI_BOTH;\r\n        if (is_numeric($field)) {\r\n-           $type = MYSQL_NUM;\r\n+           $type = MYSQLI_NUM;\r\n        } else {\r\n-           $type = MYSQL_ASSOC;\r\n+           $type = MYSQLI_ASSOC;\r\n        }\r\n\r\n        if( $useCache ) {\r\n@@ -331,12 +331,12 @@ class DBAdapter implements IAdapter {\r\n    public static function __queryType($type) {\r\n        switch(strtolower($type)) {\r\n            case 'num':\r\n-               return MYSQL_NUM;\r\n+               return MYSQLI_NUM;\r\n            case 'assoc':\r\n-               return MYSQL_ASSOC;\r\n+               return MYSQLI_ASSOC;\r\n            case 'both':\r\n            default:\r\n-               return MYSQL_BOTH;\r\n+               return MYSQLI_BOTH;\r\n        }\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/Needlworks/Textcube/issues/comments/147651757","html_url":"https://github.com/Needlworks/Textcube/issues/1832#issuecomment-147651757","issue_url":"https://api.github.com/repos/Needlworks/Textcube/issues/1832","id":147651757,"user":{"login":"inureyes","id":949915,"avatar_url":"https://avatars.githubusercontent.com/u/949915?v=3","gravatar_id":"","url":"https://api.github.com/users/inureyes","html_url":"https://github.com/inureyes","followers_url":"https://api.github.com/users/inureyes/followers","following_url":"https://api.github.com/users/inureyes/following{/other_user}","gists_url":"https://api.github.com/users/inureyes/gists{/gist_id}","starred_url":"https://api.github.com/users/inureyes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inureyes/subscriptions","organizations_url":"https://api.github.com/users/inureyes/orgs","repos_url":"https://api.github.com/users/inureyes/repos","events_url":"https://api.github.com/users/inureyes/events{/privacy}","received_events_url":"https://api.github.com/users/inureyes/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T08:51:32Z","updated_at":"2015-10-13T08:51:32Z","body":"감사합니다!"}}