2011-12-21 2 views
0

심지어 php.ini 파일을 변경했습니다. 난 아직도 다음과 같은 오류가 점점 계속Xampp localhost Strict Standards 오류

display_startup_errors 
    Default Value: Off 
    Development Value: On 
    Production Value: Off 

error_reporting 
    Default Value: E_ALL & ~E_NOTICE 
    Development Value: E_ALL | E_STRICT 
    Production Value: E_ALL & ~E_DEPRECATED 

:

; display_startup_errors 
; Default Value: Off 
; Development Value: On 
; Production Value: Off 

; error_reporting 
; Default Value: E_ALL & ~E_NOTICE 
; Development Value: E_ALL | E_STRICT 
; Production Value: E_ALL & ~E_DEPRECATED 

내가로 변경 :

Strict Standards: Declaration of CUser::Save() should be compatible with that of CBase::Save() in D:\xampp\htdocs\web\newpacific\include\user.class.php on line 128 
Strict Standards: Declaration of CUser::Add() should be compatible with that of CBase::Add() in D:\xampp\htdocs\web\newpacific\include\user.class.php on line 128 
Strict Standards: Declaration of CUser::Edit() should be compatible with that of CBase::Edit() in D:\xampp\htdocs\web\newpacific\include\user.class.php on line 128 
Strict Standards: Declaration of CNewsLetter::Save() should be compatible with that of CBase::Save() in D:\xampp\htdocs\web\newpacific\include\newsletter.class.php on line 89 
Strict Standards: Declaration of CNewsLetter::Add() should be compatible with that of CBase::Add() in D:\xampp\htdocs\web\newpacific\include\newsletter.class.php on line 89 
Strict Standards: Declaration of CNewsLetter::Edit() should be compatible with that of CBase::Edit() in D:\xampp\htdocs\web\newpacific\include\newsletter.class.php on line 89 
Strict Standards: Declaration of CLanguage::UpdateSEO() should be compatible with that of CBase::UpdateSEO() in D:\xampp\htdocs\web\newpacific\include\language.class.php on line 186 
Strict Standards: Declaration of CNav::Save() should be compatible with that of CBase::Save() in D:\xampp\htdocs\web\newpacific\include\nav.class.php on line 178 
Strict Standards: Declaration of CNav::Edit() should be compatible with that of CBase::Edit() in D:\xampp\htdocs\web\newpacific\include\nav.class.php on line 178 
Strict Standards: Declaration of CDatabase::GetAll() should be compatible with that of CBase::GetAll() in D:\xampp\htdocs\web\newpacific\include\database.class.php on line 119 
Strict Standards: Declaration of CNews::GetMaxOrder() should be compatible with that of CBase::GetMaxOrder() in D:\xampp\htdocs\web\newpacific\include\news.class.php on line 160 
Strict Standards: Declaration of CNews::UpdateOrder() should be compatible with that of CBase::UpdateOrder() in D:\xampp\htdocs\web\newpacific\include\news.class.php on line 160 
Strict Standards: Declaration of CNavigation::GetMaxOrder() should be compatible with that of CBase::GetMaxOrder() in D:\xampp\htdocs\web\newpacific\include\navigation.class.php on line 75 
Strict Standards: Declaration of CNavigation::UpdateOrder() should be compatible with that of CBase::UpdateOrder() in D:\xampp\htdocs\web\newpacific\include\navigation.class.php on line 75 
Strict Standards: Declaration of CArticle::GetMaxOrder() should be compatible with that of CBase::GetMaxOrder() in D:\xampp\htdocs\web\newpacific\include\article.class.php on line 117 

사전에 감사 나는 기본값은 php.ini 파일을 을 변경했습니다. 나는 포럼에서 수색했다. 왜 여전히 엄격한 표준 오류가 발생했는지 파악하지 못했습니다.

+0

플러스 이후에 error_reporting를 변경할 수 있습니다 희망; php.ini 파일은 주석을위한 것이다. 나는 다음과 같이 바꿨다. display_startup_errors ; 기본값 : Off ; 개발 가치 : On ; 제작 값 : 꺼짐 display_startup_errors = 꺼짐 ; error_reporting ; 기본값 : E_ALL & ~ E_NOTICE ; 개발 가치 : E_ALL | E_STRICT ; 제작 값 : E_ALL & ~ E_DEPRECATED error_reporting = E_ALL & ~ E_NOTICE하지만 여전히 엄격한 오류가 발생합니다. 제발 도와주세요 – Nick

+1

당신이 그 텍스트를 보게된다면 그 라인을 다시 주석으로 달아야합니다. "설정이 아니기 때문에 나중에 실제 설정을 보아주십시오." 나중에 "display_startup_errors = Off"또는 설정 중 하나와 유사한 행이 있어야합니다. 이들을 설정하고 서버를 다시 시작하십시오. craniumonempty로서 – craniumonempty

+0

가 말했듯이, 당신은 그 줄을 주석해야합니다. 행은 기본값 (명시 적으로 지정되지 않은 경우), 프로덕션 서버 (프로덕션 값)에서 사용해야하는 값 및 개발 서버에서 사용해야하는 값 (개발 값)을 알려줍니다. –

답변

0

@craniumonempty 다른 이름으로 php.ini의 이름을 변경 한 다음 php.ini 파일을 php.ini로 이름을 변경했습니다. 더 이상 오류가 없습니다. 이 사람에게

도움 또는 error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED

1

xampp에서 테스트 했으므로 (php.ini에서 "error_reporting = E_ALL & ~E_DEPRECATED"으로 설정하면 엄격한 경고가 제거됩니다.) 서버를 다시 시작하고 (주석 처리를 제거한 행에 주석을 달아) 서버가 적용되도록하십시오.

또한 기능이 표준을 충족하는지 확인할 수도 있습니다. 뭔가 내가 온라인으로 발견 foo는 다른 foo는 일치하지 않기 때문에이 표준을 트리거

class ParentClass 
{ 
     protected static function foo($param1, $param2) 
     { 
       echo "Parent\n"; 
     } 
} 

class ChildClass extends ParentClass 
{ 
     public static function foo($param1) 
     { 
       parent::foo($param1, 2); 
       echo "Child\n"; 
     } 
} 

ChildClass::foo(1); 

,하지만 당신은 단순히 넣을 수 있습니다 :

 public static function foo($param1, $param2=2) 
     { 
       parent::foo($param1, 2); 
       echo "Child\n"; 
     } 

및 중 $ PARAM2를 사용하거나 얻을 그것을 무시 경고를 없애지 만 찍으면 ... 쓸 것입니다 ...

+0

다음과 같이 변경했습니다. display_errors = 꺼짐 display_startup_errors = 꺼짐 error_reporting = E_ALL & ~ E_DEPRECATED 다른 사용자는 댓글을 달고 서버를 다시 시작했지만 여전히 엄격한 표준 오류가 표시됩니다. 내가 뭘 잘못 했니? – Nick

+0

@ 닉 지금 당장 열 수 없으므로, 실행중인 xampp의 버전을 알려주십시오. 나는 나중에 그것을 다듬어 볼 것입니다. 또한 xampp이 php.ini를 덮어 쓰지 않도록하십시오. 어쩌면 프로덕션 파일을로드 중일 수 있습니다. 나는 기회가 생길 때 그것을 얻으려고 노력할 것이다. – craniumonempty

+0

Xampp 1.7.7을 사용하고 있습니다. 고마워요. – Nick

관련 문제