<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[TNF : Tatter Network Foundation forum - Warning 메세지]]></title>
	<link rel="self" href="http://forum.tattersite.com/ko/extern.php?action=feed&amp;tid=11248&amp;type=atom"/>
	<updated>2013-08-06T14:09:41Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.tattersite.com/ko/viewtopic.php?id=11248</id>
		<entry>
			<title type="html"><![CDATA[RSS 답글: Warning 메세지]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=42263#p42263"/>
			<content type="html"><![CDATA[<p>escape 처리 되어서 parameter 정보의 뒷부분이 잘린것 같네요... 다시한번 올립니다.</p><p>mode|s:7:\</p>]]></content>
			<author>
				<name><![CDATA[Lueian]]></name>
			</author>
			<updated>2013-08-06T14:09:41Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=42263#p42263</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Warning 메세지]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=42262#p42262"/>
			<content type="html"><![CDATA[<p>Warning: mysqli::real_escape_string(): Couldn&#039;t fetch mysqli in /home/lueian/blog/framework/data/MySQLi/Adapter.php on line 267</p><p>Warning: mysqli::real_escape_string(): Couldn&#039;t fetch mysqli in /home/lueian/blog/framework/data/MySQLi/Adapter.php on line 267</p><p>Warning: mysqli::real_escape_string(): Couldn&#039;t fetch mysqli in /home/lueian/blog/framework/data/MySQLi/Adapter.php on line 267</p><p>Warning: mysqli::real_escape_string(): Couldn&#039;t fetch mysqli in /home/lueian/blog/framework/data/MySQLi/Adapter.php on line 267</p><p>Warning: mysqli::query(): Couldn&#039;t fetch mysqli in /home/lueian/blog/framework/data/MySQLi/Adapter.php on line 244</p><p>owner 페이지는 상관 없지만 블로그 매 페이지 마다 저렇게 표시가 됩니다.<br />물론 config.php 의 ini_set(&#039;display_error&#039;, &#039;off&#039;); 로 변경하면 나오지는 않지만 로그가 쌓이네요...</p><p>MySQLi 뿐만 아니라 MySQL 에서도 Adapter.php 부분에서 같은 경고 메세지를 출력합니다.<br />원인은 query함수와 real_escape_string함수가 실행되기 전에 Adapter의 $db-&gt;close() 를 시키는 것 같습니다.<br />임시로 unbind 함수의 self::$db-&gt;close(); 부분을 주석 처리 해봤더니 경고 메세지를 전혀 출력하지 않았었습니다.</p><p>그렇다고 DB Connection 을 close 하지 않는 것은 좀 애매한 부분이 많기에 주석처리를 다시 풀어 둔 상태이며<br />ini_set(&#039;display_error&#039;, &#039;off&#039;) 설정으로 돌려 두었습니다.<br />현재 텍스트큐브 1.9-beta6 를 설치해둔 상태 입니다.</p><p>다른 버전도 그런지는 모르겠으나, 이 부분이 빨리 패치 되어야 할 것 같습니다.<br />추가적으로 위의 경고 메세지를 출력하는 함수에 전달되는 parameter는 아래와 같습니다.</p><p>mode|s:7:</p>]]></content>
			<author>
				<name><![CDATA[Lueian]]></name>
			</author>
			<updated>2013-08-06T14:06:04Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=42262#p42262</id>
		</entry>
</feed>
