1. 에러메세지
Creating default object from empty value in "path of script" on line XX
2. 원인
PHP-5.4 이상을 대응하지 못하는 코드
3. 해결법 #1
error출력을 끄는것;;;;
* php.ini 파일에 설정 : error_reporting 항목에 E_STRICT 설정 추가
* 워드프레스의 경우 wp-config.php 파일에 " ini_set( 'display_errors', 0 );" 내용을 추가하는...
=> 사실 이것은 정상적인 해결법은 아니다..
4. 해결법 #2
코드를 고쳐야함...
* 문제가 발생하는 코드
$MyObject->MyMember = "Hello";
* 바른 사용 형태
$MyObject = new stdClass();
$MyObject->MyMember = "Hello";
=> 출처 : http://stackoverflow.com/questions/13323993/php-5-4-disable-warning-creating-default-object-from-empty-value
(내가 프로그래머가 아니라서;;;;;)
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
79 | 알아두면 유용한 안드로이드 스튜디오의 단축키 | 관리자 | 2016.02.12 | 20 |
78 | 안드로이드 스튜디오 단축키 (공식) | 관리자 | 2016.02.12 | 28 |
77 | How to solve “Unable to run mksdcard SDK tool” when installing Android Studio on Centos7 | 관리자 | 2016.02.06 | 143 |
76 | 그누보드 짧은 주소 작성 (httpd,apache) | 관리자 | 2016.02.03 | 33 |
75 | 그누보드 짧은 주소 작성 (nginx) | 관리자 | 2016.02.02 | 53 |
74 | install proftpd with account in sql | 관리자 | 2016.01.26 | 48 |
73 | Contributor Weekend: Support Forums | 관리자 | 2016.01.23 | 78 |
72 | php-fpm.sock failed (13: Permission denied) on nginx | 관리자 | 2016.01.13 | 220 |
71 | MySQL 5.7의 새로운 기능에 대해서 소개합니다. – 2편 | 관리자 | 2016.01.12 | 133 |
70 | MySQL 5.7 에 대해서 소개합니다. – 1편 | 관리자 | 2016.01.12 | 107 |
69 | WordPress 4.4.1 Security and Maintenance Release | 관리자 | 2016.01.07 | 162 |
68 | samba failing to start after centos7.2(rhel7.2) update | 관리자 | 2016.01.04 | 120 |
67 | 최신 버전 XE에서 config.inc.php 호출 내용 변경 | 관리자 | 2015.12.31 | 47 |
66 | Secure by Default in MySQL 5.7 | 관리자 | 2015.12.31 | 48 |
65 | iptables port redirection | 관리자 | 2015.12.31 | 40 |