{"action":"created","issue":{"url":"https://api.github.com/repos/bcosca/fatfree/issues/772","labels_url":"https://api.github.com/repos/bcosca/fatfree/issues/772/labels{/name}","comments_url":"https://api.github.com/repos/bcosca/fatfree/issues/772/comments","events_url":"https://api.github.com/repos/bcosca/fatfree/issues/772/events","html_url":"https://github.com/bcosca/fatfree/issues/772","id":55772320,"number":772,"title":"constant(): Couldn't find constant","user":{"login":"onursa","id":6223034,"avatar_url":"https://avatars.githubusercontent.com/u/6223034?v=3","gravatar_id":"","url":"https://api.github.com/users/onursa","html_url":"https://github.com/onursa","followers_url":"https://api.github.com/users/onursa/followers","following_url":"https://api.github.com/users/onursa/following{/other_user}","gists_url":"https://api.github.com/users/onursa/gists{/gist_id}","starred_url":"https://api.github.com/users/onursa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onursa/subscriptions","organizations_url":"https://api.github.com/users/onursa/orgs","repos_url":"https://api.github.com/users/onursa/repos","events_url":"https://api.github.com/users/onursa/events{/privacy}","received_events_url":"https://api.github.com/users/onursa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-28T15:44:05Z","updated_at":"2015-01-28T16:32:50Z","closed_at":null,"body":"hi,\r\n\r\nWhen trying to use \\DB\\SQL\\Mapper consistently get the following error:\r\n\r\n<p><code>$news = new \\DB\\SQL\\Mapper($this->db, 'news');</code></p>\r\n\r\n<p>\r\n<pre>\r\nconstant(): Couldn't find constant \\PDO::PARAM_iNT\r\n\r\n• web/lib/db/sql.php:316 constant()\r\n• web/lib/db/sql/mapper.php:602 DB\\SQL->schema()\r\n• web/app/controller/news.php:14 DB\\SQL\\Mapper->__construct()\r\n• web/lib/base.php:1422 Base->call()\r\n• web/index.php:10 Base->run()\r\n</pre>\r\n</p>"},"comment":{"url":"https://api.github.com/repos/bcosca/fatfree/issues/comments/71866347","html_url":"https://github.com/bcosca/fatfree/issues/772#issuecomment-71866347","issue_url":"https://api.github.com/repos/bcosca/fatfree/issues/772","id":71866347,"user":{"login":"onursa","id":6223034,"avatar_url":"https://avatars.githubusercontent.com/u/6223034?v=3","gravatar_id":"","url":"https://api.github.com/users/onursa","html_url":"https://github.com/onursa","followers_url":"https://api.github.com/users/onursa/followers","following_url":"https://api.github.com/users/onursa/following{/other_user}","gists_url":"https://api.github.com/users/onursa/gists{/gist_id}","starred_url":"https://api.github.com/users/onursa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onursa/subscriptions","organizations_url":"https://api.github.com/users/onursa/orgs","repos_url":"https://api.github.com/users/onursa/repos","events_url":"https://api.github.com/users/onursa/events{/privacy}","received_events_url":"https://api.github.com/users/onursa/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T16:32:50Z","updated_at":"2015-01-28T16:32:50Z","body":" It might be PHP based problem. When you write 'i' letter in Turkish, equals to 'İ' letter. I use PHP 5.6.5 and Fat-Free FW 3.4.0\r\n\r\n<pre>\r\n<code>\r\necho strtoupper('int');\r\n// result: iNT\r\n</code>\r\n</pre>\r\n\r\nWhen I had written <code>mb_strtoupper</code> it was fixed."}}