| 제목 | PHP Version 4.4.7p1 + ORACLE 10g 문제점 | ||
|---|---|---|---|
| 글쓴이 | 맑은별 | 작성시각 | 2010/09/08 11:50:31 | 
|  | |||
| 테스트 코드 $query = $this->db->query("select * from T_SBOARD "); foreach ($query->result() as $row) {     echo $row->IDX; } --------------------------------------------- database/drivers/oci8/oci8_result.php // If PHP 4 is being used we have to build our own result 		foreach ($this->result_array() as $key => $val) 		{ 			$obj = new stdClass(); 			if (is_array($val)) 			{ 				foreach ($val as $k => $v) 				{ 					$obj->$k = $v; 				} 			} 			else 			{ 				$obj->$key = $val; 			} 			$result[] = $obj; 		} 		return $result; 	} ----------------------------------------------------------------------- Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 85 bytes) in/home/hosting_users/worshop/_Codeigniter/database/drivers/oci8/oci8_result.php on line 188 에러가 발생하네요 그런데 php5 에서는 이런애러가 발생하지 않네요 php4 + oracle 10g 의 경우 메모리 누수가 발생하나보네요.. | |||
| 다음글 | 세션질문 좀 드립니다. (4) | ||
| 이전글 | [초보 질문]uri 혼용 문제 (6) | ||
| 
                                jois
                                /
                                2010/09/08 23:27:35 /
                                추천
                                0
                             | 
뭐 어쩔 수 없이 한꺼번에 처리하는 양을 줄여서 메모리 사용량을 줄여야겠죠..
요청 하나에 40MB까지 허용하니까.. 그거 감안해서 프로그램을 수정해주셔야할듯 합니다.