__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개

전체 5,352
개발자팁 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT