__PHP_Incomplete_Class > 개발자팁

개발자팁

개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.

__PHP_Incomplete_Class 정보

PHP __PHP_Incomplete_Class

본문

__PHP_Incomplete_Class 라는 오류가 발생했습니다.

알고보니, session_start()를 하고서 세션(session)에 ($_SESSION) 값을 저장할 때 클래스의 인스턴스를 저장할 경우에 session_start()보다 먼저 각 클래스의 정의가 require 되지 않으면 발생하는 오류였습니다.

session_start()를 하기 전에, 세션에 저장할 클래스의 정의를 미리 require 해 두시기 바랍니다.

from http://php.kn.vutbr.cz/manual/kr/ref.session.php
If you have saved an object in session, you must define the class of the object before the session_start().
If you don't do that, php will not know the class of the object, and his type will be "__PHP_Incomplete_Class".
[이 게시물은 관리자님에 의해 2011-10-31 17:12:10 PHP & HTML에서 이동 됨]
추천
0
  • 복사

댓글 0개

© SIRSOFT
현재 페이지 제일 처음으로