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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
49 | Testing the Fastest Way to Import a Table into MySQL (and some interesting 5.7 performance results) | 관리자 | 2015.12.31 | 51 |
48 | $_SERVER[‘SERVER_SOFTWARE’]=’Apache’ in wp-config.php | 관리자 | 2016.06.24 | 50 |
47 | jsp 에서 사용자가 생성한 java class 호출 하기 | 관리자 | 2015.12.31 | 50 |
46 | 웹사이트 보안 개발 가이드 20160421 | 관리자 | 2017.07.25 | 49 |
45 | WordPress 4.8 Beta 1 | 관리자 | 2017.05.13 | 48 |
44 | install proftpd with account in sql | 관리자 | 2016.01.26 | 48 |
43 | Secure by Default in MySQL 5.7 | 관리자 | 2015.12.31 | 48 |
42 | Mozilla SSL Configuration Generator | 관리자 | 2016.10.15 | 47 |
41 | 최신 버전 XE에서 config.inc.php 호출 내용 변경 | 관리자 | 2015.12.31 | 47 |
40 | WordPress 4.6 “Pepper” | 관리자 | 2016.08.17 | 46 |
39 | Support for SATA and SAS disk drives with a size of 2TB or greater | 관리자 | 2017.07.07 | 45 |
38 | Changing Screen Size/Resolution of CentOS GUEST on VirtualBox | 관리자 | 2017.05.31 | 45 |
37 | WordPress 4.7.2 Security Release | 관리자 | 2017.01.27 | 44 |
36 | Apache Tomcat Versions – Which Do I Want? | 관리자 | 2016.06.24 | 44 |
35 | mod_rpaf on aws elb | 관리자 | 2016.06.17 | 43 |