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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
124 | WordPress 4.4 “Clifford” | 관리자 | 2015.12.31 | 40 |
123 | iptables port redirection | 관리자 | 2015.12.31 | 40 |
122 | WordPress 4.6 Release Candidate | 관리자 | 2016.07.28 | 42 |
121 | Moving Toward SSL | 관리자 | 2016.12.02 | 42 |
120 | mod_rpaf on aws elb | 관리자 | 2016.06.17 | 43 |
119 | Apache Tomcat Versions – Which Do I Want? | 관리자 | 2016.06.24 | 44 |
118 | WordPress 4.7.2 Security Release | 관리자 | 2017.01.27 | 45 |
117 | Changing Screen Size/Resolution of CentOS GUEST on VirtualBox | 관리자 | 2017.05.31 | 45 |
116 | Support for SATA and SAS disk drives with a size of 2TB or greater | 관리자 | 2017.07.07 | 45 |
115 | WordPress 4.6 “Pepper” | 관리자 | 2016.08.17 | 46 |
114 | 최신 버전 XE에서 config.inc.php 호출 내용 변경 | 관리자 | 2015.12.31 | 47 |
113 | Mozilla SSL Configuration Generator | 관리자 | 2016.10.15 | 47 |
112 | Secure by Default in MySQL 5.7 | 관리자 | 2015.12.31 | 48 |
111 | install proftpd with account in sql | 관리자 | 2016.01.26 | 48 |
110 | WordPress 4.8 Beta 1 | 관리자 | 2017.05.13 | 48 |