com doc/ja: Fix Ticks usage example: language/control-structures/declare.xml

[email protected] (Yoshinari Takaoka) Thu, 11 Mar 2021 23:40:56 +0000
Newsgroups php.doc.ja
Message-ID <[email protected]>
Commit:    e1796a5b81652a26495c0d1745135ecb681fd518=0AAuthor:    Yoshinari =
Takaoka <[email protected]>         Fri, 12 Mar 2021 08:40:56 +0900=0AParen=
ts:   9ee4ec2ff4af0de31026e968174c41306d6c0682=0ABranches:  master=0A=0ALin=
k:       http://git.php.net/?p=3Ddoc/ja.git;a=3Dcommitdiff;h=3De1796a5b8165=
2a26495c0d1745135ecb681fd518=0A=0ALog:=0AFix Ticks usage example=0A=0AClari=
fy where tick events are generated, and delete the "equivalent=0Abehavior" =
example which calls tick_handler() manually, because that=0Aexample isn't r=
eally suitable.=0A=0ACo-authored-by: Christoph M. Becker <[email protected]=
>=0A=0ACloses GH-464.=0A=0AChanged paths:=0A  M  language/control-structure=
s/declare.xml=0A=0A=0ADiff:=0Adiff --git a/language/control-structures/decl=
are.xml b/language/control-structures/declare.xml=0Aindex ad8ae1ede4..66eef=
eedaa 100644=0A--- a/language/control-structures/declare.xml=0A+++ b/langua=
ge/control-structures/declare.xml=0A@@ -1,6 +1,6 @@=0A <?xml version=3D"1.0=
" encoding=3D"utf-8"?>=0A <!-- $Revision$ -->=0A-<!-- EN-Revision: 7104ee97=
ced1768a3231588dfc0bc0d7eb1117ad Maintainer: takagi Status: ready -->=0A+<!=
-- EN-Revision: 1075568da56078ca0631f9cb7a310f27f3388c66 Maintainer: takagi=
 Status: ready -->=0A <!-- Credits: mumumu -->=0A =0A <sect1 xml:id=3D"cont=
rol-structures.declare" xmlns=3D"http://docbook.org/ns/docbook" xmlns:xlink=
=3D"http://www.w3.org/1999/xlink">=0A@@ -116,13 +116,13 @@ function tick_ha=
ndler()=0A     echo "tick_handler() called\n";=0A }=0A =0A-register_tick_fu=
nction('tick_handler');=0A+register_tick_function('tick_handler'); // tick =
=E3=82=A4=E3=83=99=E3=83=B3=E3=83=88=E7=99=BA=E7=94=9F=0A =0A-$a =3D 1;=0A+=
$a =3D 1; // tick =E3=82=A4=E3=83=99=E3=83=B3=E3=83=88=E7=99=BA=E7=94=9F=0A=
 =0A if ($a > 0) {=0A-    $a +=3D 2;=0A-    print($a);=0A+    $a +=3D 2;   =
// tick =E3=82=A4=E3=83=99=E3=83=B3=E3=83=88=E7=99=BA=E7=94=9F=0A+    print=
($a); // tick =E3=82=A4=E3=83=99=E3=83=B3=E3=83=88=E7=99=BA=E7=94=9F=0A }=
=0A =0A ?>=0A@@ -130,34 +130,6 @@ if ($a > 0) {=0A    </programlisting>=0A =
  </example>=0A  </para>=0A- <para>=0A-  <example>=0A-   <title>Ticks =
=E3=81=AE=E4=BD=BF=E7=94=A8=E4=BE=8B</title>=0A-   <programlisting role=3D"=
php">=0A-<![CDATA[=0A-<?php=0A-=0A-function tick_handler()=0A-{=0A-  echo "=
tick_handler() called\n";=0A-}=0A-=0A-$a =3D 1;=0A-tick_handler();=0A-=0A-i=
f ($a > 0) {=0A-    $a +=3D 2;=0A-    tick_handler();=0A-    print($a);=0A-=
    tick_handler();=0A-}=0A-tick_handler();=0A-=0A-?>=0A-]]>=0A-   </progra=
mlisting>=0A-  </example>=0A- </para>=0A  <simpara>=0A   <function>register=
_tick_function</function> =E3=81=8A=E3=82=88=E3=81=B3=0A   <function>unregi=
ster_tick_function</function> =E3=82=82=E5=8F=82=E7=85=A7=E3=81=8F=E3=81=
=A0=E3=81=95=E3=81=84=E3=80=82=0A