2011-12-21 14 views
0

私はphp.iniファイルを変更しました。 私はデフォルトはphp.iniの を変更:事前にXampp localhost厳密な規格のエラー

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 

ありがとう:私はまだ、次のエラーを得続ける

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 

私はにそれらを変更してください。私はフォーラムで検索しました。なぜ厳しい標準エラーが出るのかわかりませんでした。

+0

にプラスので、error_reportingの変更することができます願っています。 php.iniのコメント行です。私は次のように変更しました。 display_startup_errors ;デフォルト値:オフ ;開発値: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"と表示されるか、設定の1つである同様の行が表示されます。それらを設定し、サーバーを再始動してください。 craniumonemptyとして – craniumonempty

+0

が言った、あなたはそれらの行にコメントする必要があります。行は、デフォルト値(明示的に指定されていない場合)、実動サーバー(Production Value)で使用する値、開発サーバーで使用する値(Development Value)を示します。 –

答えて

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 = Off display_startup_errors = Off error_reporting = E_ALL&〜E_DEPRECATED他の人はコメントをつけてサーバを再起動しましたが、どうしたんだ? – Nick

+0

@ニック私はすぐに開くことができませんので、実行しているxamppのバージョンを教えてください。私は後でそれをdupしようとします。また、xamppがphp.iniを上書きしていないことを確認してください。代わりに、プロダクションファイルをロードしている可能性があります。私はチャンスを得るときにそれに乗ろうとします。 – craniumonempty

+0

私はXampp 1.7.7を使用しています。ありがとうたくさんありがとう – Nick

関連する問題