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

From: Date: Mon, 09 Dec 2019 00:15:50 +0000
Subject: svn: /phpdoc/ja/trunk/reference/info/functions/ assert-options.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-5142@lists.php.net to get a copy of this message
mumumu Mon, 09 Dec 2019 00:15:50 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=348473 Log: Fix #78816: Missing / wrong description of the assert_callback Bug: https://bugs.php.net/78816 (Verified) Missing / wrong description of the assert_callback Bug: https://bugs.php.net/78816 (Closed) Missing / wrong description of the assert_callback Changed paths: U phpdoc/ja/trunk/reference/info/functions/assert-options.xml Modified: phpdoc/ja/trunk/reference/info/functions/assert-options.xml =================================================================== --- phpdoc/ja/trunk/reference/info/functions/assert-options.xml 2019-12-09 00:05:26 UTC (rev 348472) +++ phpdoc/ja/trunk/reference/info/functions/assert-options.xml 2019-12-09 00:15:50 UTC (rev 348473) @@ -85,6 +85,52 @@ <para> オプションに指定する新しい値。 </para> + <para> + <constant>ASSERT_CALLBACK</constant> 定数または assert.callback + に設定するコールバック関数は、次のようなシグナチャを持つべきです: + <methodsynopsis role="procedural"> + <type>void</type><methodname>assert_callback</methodname> + <methodparam><type>string</type><parameter>file</parameter></methodparam> + <methodparam><type>int</type><parameter>line</parameter></methodparam> + <methodparam><type>string</type><parameter>assertion</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>description</parameter></methodparam> + </methodsynopsis> + <variablelist> + <varlistentry> + <term><parameter>file</parameter></term> + <listitem> + <simpara> + <function>assert</function> 関数がコールされたファイル名 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>line</parameter></term> + <listitem> + <simpara> + <function>assert</function> 関数がコールされた行番号 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>assertion</parameter></term> + <listitem> + <simpara> + <function>assert</function> 関数に渡した assertion + を文字列に変換したもの + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>description</parameter></term> + <listitem> + <simpara> + <function>assert</function> 関数に渡された説明 + </simpara> + </listitem> + </varlistentry> + </variablelist> + </para> </listitem> </varlistentry> </variablelist>

« previous php.doc.ja (#5142) next »