[PHP-doc 1004] Re: error_reporting のデフォルトについて

Yasuo Ohgaki yohgaki @ ohgaki.net
2013年 9月 4日 (水) 13:22:04 JST


大垣です。

マニュアル間違ってますね

Index: ini.xml
===================================================================
--- ini.xml (リビジョン 331283)
+++ ini.xml (作業コピー)
@@ -144,10 +144,17 @@
       <link linkend="ini.display-errors">display_errors</link> directive.
      </para>
      <para>
-      In PHP 4 and PHP 5 the default value is <constant>E_ALL</constant>
-      & ~<constant>E_NOTICE</constant>.
-      This setting does not show <constant>E_NOTICE</constant> level
errors. You
-      may want to show them during development.
+     <para>
+      PHP 5.3 or later, the default value
+      is <constant>E_ALL</constant> &
+      ~<constant>E_NOTICE</constant> &
+      ~<constant>E_STRICT</constant> &
+      ~<constant>E_DEPRECATED</constant>. This setting does not
+      show <constant>E_NOTICE</constant>, <constant>E_STRICT</constant>
+      and <constant>E_DEPRECATED</constant> level errors. You may want
+      to show them during development.  Older PHP's default value
+      is <constant>E_ALL</constant> &
+      ~<constant>E_NOTICE</constant>.
      </para>
      <note>
       <para>Enabling <constant>E_NOTICE</constant> during development has

こんな感じでどうでしょうか?


--
Yasuo Ohgaki
yohgaki @ ohgaki.net


2013/9/3 Yoshinari Takaoka <mumumu @ mumumu.org>

> 高岡です。
>
> Kenji さん、御報告ありがとうございます。
> これは英語版もそうなのですが、error_reporting については正確にデフォルト値を反映していません。
>
> php-src/Zend/zend.c を見ると、以下のような変遷を辿ってきています。
>
> PHP 5.0.0 から E_ALL & ~E_NOTICE & ~E_STRICT
> PHP 5.3.0 から E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
>
> https://github.com/php/php-src/blob/master/Zend/zend.c#L72
>
> なので、吉田さんが仰るとおり bugs.php.net に投げても良いでしょうが
> 修正案でも示さない限り受け取って貰えない気がするので、こちらでやりましょうか。
>
> 修正のやり方としては、Notes に書くのが一番良さそうですね。
> ご意見募集です。
>
>
> http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
>
> どうぞ宜しくお願いいたします。
>
>
> On Tue, 3 Sep 2013 06:42:00 +0900
> Kenji Suzuki <kenji.uui @ gmail.com> wrote:
>
> > Kenji です。
> >
> >
> >
> http://www.php.net/manual/ja/errorfunc.configuration.php#ini.error-reporting
> > > PHP 4 と PHP 5 のデフォルトは E_ALL & ~E_NOTICE です。
> >
> > とありますが、PHP 5.3 から
> >
> >  E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
> >
> > に変わっているようです。
> >
> >
> > // Kenji
> > _______________________________________________
> > PHP-doc mailing list
> > PHP-doc @ php.gr.jp
> > http://ml.php.gr.jp/mailman/listinfo/php-doc
>
>
> --
> mumumu.org <mumumu @ mumumu.org>
> _______________________________________________
> PHP-doc mailing list
> PHP-doc @ php.gr.jp
> http://ml.php.gr.jp/mailman/listinfo/php-doc
>

-------------- next part --------------
HTMLの添付ファイルを保管しました...
URL: <http://ml.php.gr.jp/pipermail/php-doc/attachments/20130904/57e0fca4/attachment.html>


PHP-doc メーリングリストの案内