com doc/ja: Show info about PHP error reporting: language/types/type-juggling.xml
| From: | Yoshinari Takaoka | Date: | Fri, 19 Mar 2021 19:08:44 +0000 |
| Subject: | com doc/ja: Show info about PHP error reporting: language/types/type-juggling.xml | ||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-6264@lists.php.net to get a copy of this message | ||
Commit: 5004fc9ebe8af2aad74b5cc4c2802af8c7b93ee0
Author: Yoshinari Takaoka <mumumu@mumumu.org> Sat, 20 Mar 2021 04:08:44 +0900
Parents: e0c524c08396d65a6b3d9423f6eef74e1bf24912
Branches: master
Link: http://git.php.net/?p=doc/ja.git;a=commitdiff;h=5004fc9ebe8af2aad74b5cc4c2802af8c7b93ee0
Log:
Show info about PHP error reporting
Reader needs to be informed about PHP errors.
Changed paths:
M language/types/type-juggling.xml
Diff:
diff --git a/language/types/type-juggling.xml b/language/types/type-juggling.xml
index 19128d835a..f88eb7529d 100644
--- a/language/types/type-juggling.xml
+++ b/language/types/type-juggling.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: d494ffa4d9f83b60fe66972ec2c0cf0301513b4a Maintainer: takagi Status: ready
-->
+<!-- EN-Revision: f3e5da139a9576c522d6e6a43394f1496b72de0e Maintainer: takagi Status: ready
-->
<!-- CREDITS: hirokawa,shimooka,mumumu -->
<sect1 xml:id="language.types.type-juggling">
<title>型の相互変換</title>
@@ -31,8 +31,8 @@
$foo = "1"; // $foo は文字列 (ASCII 49) です
$foo *= 2; // ここでは、$foo は整数 (2) です
$foo = $foo * 1.3; // ここでは、$foo はfloat (2.6) です
-$foo = 5 * "10 Little Piggies"; // $foo は整数 (50) です
-$foo = 5 * "10 Small Pigs"; // $foo は整数 (50) です
+$foo = 5 * "10 Little Piggies"; // $foo は integer (50) ですが、PHP 8.0.0 では
E_WARNING (A non-numeric value encountered)
が発生します。これより前のバージョンでは、E_NOTICE (A non well formed numeric
value encountered) が発生していました。
+$foo = 5 * "10 Small Pigs"; // $foo は integer (50) ですが、PHP 8.0.0 では
E_WARNING (A non-numeric value encountered)
が発生します。これより前のバージョンでは、E_NOTICE (A non well formed numeric
value encountered) が発生していました。
?>
]]>
<!-- bad example, no real operator (must be used with variable, modifies it too)
@@ -67,7 +67,7 @@ examples:
ある変数を強制的にある特定の型として評価させたい場合には、
<link linkend="language.types.typecasting">型キャスト</link>
のセクションを参照ください。ある変数の型を変更したい場合には、
- <function>settype</function> を参照してください。
+ <function>settype</function> を参照ください。
</simpara>
<para>
本節の例をテストしたい場合には、
@@ -98,7 +98,7 @@ echo $a; // bar
<para>
詳細は、<link linkend="language.types.string.substr">
-
文字として文字列をアクセスする</link>というセクションを参照してください。
+
文字として文字列をアクセスする</link>というセクションを参照ください。
</para>
</note>