svn: /phpdoc/ja/trunk/reference/info/functions/ assert.xml

[email protected] (Yoshinari Takaoka)
Newsgroups php.doc.ja
Message-ID <[email protected]>
mumumu                                   Tue, 09 Jun 2020 20:14:23 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=350022

Log:
Add note on default value of `$description` param for `assert`

Patch by alexdowad.

Closes php/doc-en#117.

Bug: https://bugs.php.net/117 (error getting bug information)
      
Changed paths:
    U   phpdoc/ja/trunk/reference/info/functions/assert.xml

Modified: phpdoc/ja/trunk/reference/info/functions/assert.xml
===================================================================
--- phpdoc/ja/trunk/reference/info/functions/assert.xml	2020-06-09 20:03:24 UTC (rev 350021)
+++ phpdoc/ja/trunk/reference/info/functions/assert.xml	2020-06-09 20:14:23 UTC (rev 350022)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 342126 Maintainer: hirokawa Status: ready -->
+<!-- EN-Revision: 350018 Maintainer: hirokawa Status: ready -->
 <!-- CREDITS: takagi,mumumu -->
 <refentry xml:id="function.assert" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
@@ -178,8 +178,10 @@
      <term><parameter>description</parameter></term>
      <listitem>
       <para>
-       オプションの説明で、
-       <parameter>assertion</parameter> が失敗したときのメッセージにこれを含めます。
+       オプションの説明です。
+       <parameter>assertion</parameter> が失敗したときのメッセージを設定します。
+       PHP 7 からは、この説明が指定されない場合、
+       <function>assert</function> を呼び出したソースコードに関するデフォルトの説明が設定されます。
       </para>
      </listitem>
     </varlistentry>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.