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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
94 | Testing the Fastest Way to Import a Table into MySQL (and some interesting 5.7 performance results) | 관리자 | 2015.12.31 | 51 |
93 | can’t start httpd(apache-2.4) with ssl module | 관리자 | 2015.12.31 | 26 |
92 | Recompiling VirtualBox kernel modules [FAILED] on centos7.2 or rhel7.2 | 관리자 | 2015.12.31 | 37 |
91 | jsp 에서 사용자가 생성한 java class 호출 하기 | 관리자 | 2015.12.31 | 50 |
90 | iptables port redirection | 관리자 | 2015.12.31 | 40 |
89 | Secure by Default in MySQL 5.7 | 관리자 | 2015.12.31 | 48 |
88 | 최신 버전 XE에서 config.inc.php 호출 내용 변경 | 관리자 | 2015.12.31 | 47 |
87 | samba failing to start after centos7.2(rhel7.2) update | 관리자 | 2016.01.04 | 120 |
86 | WordPress 4.4.1 Security and Maintenance Release | 관리자 | 2016.01.07 | 162 |
85 | MySQL 5.7 에 대해서 소개합니다. – 1편 | 관리자 | 2016.01.12 | 107 |
84 | MySQL 5.7의 새로운 기능에 대해서 소개합니다. – 2편 | 관리자 | 2016.01.12 | 133 |
83 | php-fpm.sock failed (13: Permission denied) on nginx | 관리자 | 2016.01.13 | 220 |
82 | Contributor Weekend: Support Forums | 관리자 | 2016.01.23 | 78 |
81 | install proftpd with account in sql | 관리자 | 2016.01.26 | 48 |
80 | 그누보드 짧은 주소 작성 (nginx) | 관리자 | 2016.02.02 | 53 |