Skip to content

Commit b49ba43

Browse files
authored
Sync outdated files (#978)
1 parent fd8f3d8 commit b49ba43

File tree

12 files changed

+147
-22
lines changed

12 files changed

+147
-22
lines changed

reference/classobj/functions/is-a.xml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: fd65805e83f7dc3b12ab5844cafc4489dc367a27 Maintainer: nio Status: ready -->
3+
<!-- EN-Revision: c558c3af38874a913c7515bbd49aaf2e689cbdd0 Maintainer: nio Status: ready -->
44
<!-- CREDITS: mowangjuanzi, Luffy -->
55
<refentry xml:id="function.is-a" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -89,6 +89,15 @@ if (is_a($WF, 'WidgetFactory')) {
8989
<programlisting role="php">
9090
<![CDATA[
9191
<?php
92+
// define a class
93+
class WidgetFactory
94+
{
95+
var $oink = 'moo';
96+
}
97+
98+
// create a new object
99+
$WF = new WidgetFactory();
100+
92101
if ($WF instanceof WidgetFactory) {
93102
echo 'Yes, $WF is a WidgetFactory';
94103
}

reference/classobj/functions/method-exists.xml

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 6846ebb4e33d51faee4a1e99c241a7a24861e0e4 Maintainer: HonestQiao Status: ready -->
4-
<!-- CREDITS: mowangjuanzi -->
3+
<!-- EN-Revision: 57c38808e4eed7fce33992a32b2ffee78dd8004e Maintainer: HonestQiao Status: ready -->
4+
<!-- CREDITS: mowangjuanzi, Luffy -->
55
<refentry xml:id="function.method-exists" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
77
<refname>method_exists</refname>
@@ -51,6 +51,28 @@
5151
</para>
5252
</refsect1>
5353

54+
<refsect1 role="changelog">
55+
&reftitle.changelog;
56+
<informaltable>
57+
<tgroup cols="2">
58+
<thead>
59+
<row>
60+
<entry>&Version;</entry>
61+
<entry>&Description;</entry>
62+
</row>
63+
</thead>
64+
<tbody>
65+
<row>
66+
<entry>7.4.0</entry>
67+
<entry>
68+
针对继承的私有方法的类检查现在返回 <parameter>false</parameter>。
69+
</entry>
70+
</row>
71+
</tbody>
72+
</tgroup>
73+
</informaltable>
74+
</refsect1>
75+
5476
<refsect1 role="examples">
5577
&reftitle.examples;
5678
<para>
@@ -94,6 +116,13 @@ bool(true)
94116
<refsect1 role="notes">
95117
&reftitle.notes;
96118
&note.uses-autoload;
119+
<note>
120+
<simpara>
121+
<function>method_exists</function> 函数无法检测使用
122+
<link linkend="language.oop5.overloading.methods"><literal>__call</literal></link>
123+
魔术方法访问的方法。
124+
</simpara>
125+
</note>
97126
</refsect1>
98127

99128
<refsect1 role="seealso">
@@ -126,4 +155,4 @@ End:
126155
vim600: syn=xml fen fdm=syntax fdl=2 si
127156
vim: et tw=78 syn=sgml
128157
vi: ts=1 sw=1
129-
-->
158+
-->

reference/curl/book.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 27fd6d7147a855eb0e407110f1db39a9c61b26d6 Maintainer: daijie Status: ready -->
4-
<!-- CREDITS: LuffyRytia -->
3+
<!-- EN-Revision: 01d19a544891db839e36de8316e78f81de56c1ca Maintainer: daijie Status: ready -->
4+
<!-- CREDITS: Luffy, Rytia -->
55

66
<book xml:id="book.curl" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
77
<?phpdoc extension-membership="bundledexternal" ?>
@@ -24,6 +24,7 @@
2424
&reference.curl.curlhandle;
2525
&reference.curl.curlmultihandle;
2626
&reference.curl.curlsharehandle;
27+
&reference.curl.curlsharepersistenthandle;
2728
&reference.curl.curlfile;
2829
&reference.curl.curlstringfile;
2930

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- $Revision$ -->
3+
<!-- EN-Revision: 01d19a544891db839e36de8316e78f81de56c1ca Maintainer: Luffy Status: ready -->
4+
<reference xml:id="class.curlsharepersistenthandle" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
5+
<title>CurlSharePersistentHandle 类</title>
6+
<titleabbrev>CurlSharePersistentHandle</titleabbrev>
7+
8+
<partintro>
9+
10+
<!-- {{{ CurlSharePersistentHandle intro -->
11+
<section xml:id="curlsharepersistenthandle.intro">
12+
&reftitle.intro;
13+
<simpara>
14+
代表一个持久的 cURL "share" 句柄。
15+
</simpara>
16+
</section>
17+
<!-- }}} -->
18+
19+
<section xml:id="curlsharepersistenthandle.synopsis">
20+
&reftitle.classsynopsis;
21+
22+
<!-- {{{ Synopsis -->
23+
<classsynopsis class="class">
24+
<ooclass>
25+
<modifier>final</modifier>
26+
<classname>CurlSharePersistentHandle</classname>
27+
</ooclass>
28+
29+
<classsynopsisinfo role="comment">&Properties;</classsynopsisinfo>
30+
<fieldsynopsis>
31+
<modifier>public</modifier>
32+
<modifier>readonly</modifier>
33+
<type>array</type>
34+
<varname linkend="curlsharepersistenthandle.props.options">options</varname>
35+
</fieldsynopsis>
36+
</classsynopsis>
37+
<!-- }}} -->
38+
39+
</section>
40+
41+
<!-- {{{ CurlSharePersistentHandle properties -->
42+
<section xml:id="curlsharepersistenthandle.props">
43+
&reftitle.properties;
44+
<variablelist>
45+
<varlistentry xml:id="curlsharepersistenthandle.props.options">
46+
<term><varname>options</varname></term>
47+
<listitem>
48+
<simpara>使用此句柄共享的 <constant>CURL_LOCK_DATA_<replaceable>*</replaceable></constant> 缓存。</simpara>
49+
</listitem>
50+
</varlistentry>
51+
</variablelist>
52+
</section>
53+
<!-- }}} -->
54+
55+
56+
</partintro>
57+
58+
<!-- &reference.curl.entities.curlsharepersistenthandle; -->
59+
60+
</reference>
61+
<!-- Keep this comment at the end of the file
62+
Local variables:
63+
mode: sgml
64+
sgml-omittag:t
65+
sgml-shorttag:t
66+
sgml-minimize-attributes:nil
67+
sgml-always-quote-attributes:t
68+
sgml-indent-step:1
69+
sgml-indent-data:t
70+
indent-tabs-mode:nil
71+
sgml-parent-document:nil
72+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
73+
sgml-exposed-tags:nil
74+
sgml-local-catalogs:nil
75+
sgml-local-ecat-files:nil
76+
End:
77+
vim600: syn=xml fen fdm=syntax fdl=2 si
78+
vim: et tw=78 syn=sgml
79+
vi: ts=1 sw=1
80+
-->

reference/curl/functions/curl-share-init.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: b7f8c11e56ff1c57a2993e2ed7e5c5ace18637fd Maintainer: duanxiaoqiang Status: ready -->
4-
<!-- CREDITS: mowangjuanzi -->
3+
<!-- EN-Revision: 01d19a544891db839e36de8316e78f81de56c1ca Maintainer: duanxiaoqiang Status: ready -->
4+
<!-- CREDITS: mowangjuanzi, Luffy -->
55
<refentry xml:id="function.curl-share-init" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<refnamediv>
77
<refname>curl_share_init</refname>
@@ -103,6 +103,7 @@ curl_close($ch2);
103103
<simplelist>
104104
<member><function>curl_share_setopt</function></member>
105105
<member><function>curl_share_close</function></member>
106+
<member><function>curl_share_init_persistent</function></member>
106107
</simplelist>
107108
</para>
108109
</refsect1>

reference/errorfunc/functions/restore-error-handler.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: f781803449007bb0e3a96c693e0eee067f7eb466 Maintainer: daijie Status: ready -->
4-
<!-- CREDITS: mowangjuanzi -->
3+
<!-- EN-Revision: 4a6671fe697ead5b27603b56face01a2c4e7ebe5 Maintainer: daijie Status: ready -->
4+
<!-- CREDITS: mowangjuanzi, Luffy -->
55
<refentry xml:id="function.restore-error-handler" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
77
<refname>restore_error_handler</refname>
@@ -73,6 +73,7 @@ Invalid serialized value.
7373
<simplelist>
7474
<member><function>error_reporting</function></member>
7575
<member><function>set_error_handler</function></member>
76+
<member><function>get_error_handler</function></member>
7677
<member><function>restore_exception_handler</function></member>
7778
<member><function>trigger_error</function></member>
7879
</simplelist>

reference/errorfunc/functions/restore-exception-handler.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: f781803449007bb0e3a96c693e0eee067f7eb466 Maintainer: daijie Status: ready -->
4-
<!-- CREDITS: mowangjuanzi -->
3+
<!-- EN-Revision: 4a6671fe697ead5b27603b56face01a2c4e7ebe5 Maintainer: daijie Status: ready -->
4+
<!-- CREDITS: mowangjuanzi, Luffy -->
55
<refentry xml:id="function.restore-exception-handler" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
77
<refname>restore_exception_handler</refname>
@@ -76,6 +76,7 @@
7676
<para>
7777
<simplelist>
7878
<member><function>set_exception_handler</function></member>
79+
<member><function>get_exception_handler</function></member>
7980
<member><function>set_error_handler</function></member>
8081
<member><function>restore_error_handler</function></member>
8182
<member><function>error_reporting</function></member>

reference/errorfunc/functions/set-error-handler.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 23906aa9f613d0f67538e4292b220cebf624d5f2 Maintainer: daijie Status: ready -->
4-
<!-- CREDITS: mowangjuanzi -->
3+
<!-- EN-Revision: 21ce7d7f4f9f6f241f3e09e7f0a5be5c504d90d2 Maintainer: daijie Status: ready -->
4+
<!-- CREDITS: mowangjuanzi, Luffy -->
55
<refentry xml:id="function.set-error-handler" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
77
<refname>set_error_handler</refname>
@@ -141,8 +141,8 @@
141141
<refsect1 role="returnvalues">
142142
&reftitle.returnvalues;
143143
<para>
144-
如果之前定义的错误处理程序(如果有)。如果是内置的错误处理程序,则返回
145-
&null;。如果之前的错误处理程序是一个类的方法,此函数会返回带类和方法名的索引数组。
144+
Returns the previously defined error handler (if any) as a <type>callable</type>.
145+
If the built-in error handler is used &null; is returned.
146146
</para>
147147
</refsect1>
148148

@@ -322,7 +322,7 @@ Aborting...<br />
322322
<simplelist>
323323
<member><classname>ErrorException</classname></member>
324324
<member><function>error_reporting</function></member>
325-
<member><function>restore_error_handler</function></member>
325+
<member><function>get_error_handler</function></member>
326326
<member><function>trigger_error</function></member>
327327
<member><link linkend="errorfunc.constants">error level constants</link></member>
328328
</simplelist>

reference/errorfunc/functions/set-exception-handler.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 686b6869e2695d96d0f3a2055cfa629a8b3b1ac7 Maintainer: daijie Status: ready -->
4-
<!-- CREDITS: mowangjuanzi -->
3+
<!-- EN-Revision: 4a6671fe697ead5b27603b56face01a2c4e7ebe5 Maintainer: daijie Status: ready -->
4+
<!-- CREDITS: mowangjuanzi, Luffy -->
55
<refentry xml:id="function.set-exception-handler" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
77
<refname>set_exception_handler</refname>
@@ -85,6 +85,7 @@ echo "Not Executed\n";
8585
&reftitle.seealso;
8686
<para>
8787
<simplelist>
88+
<member><function>get_exception_handler</function></member>
8889
<member><function>restore_exception_handler</function></member>
8990
<member><function>restore_error_handler</function></member>
9091
<member><function>error_reporting</function></member>

reference/event/book.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: b621ab27a9d333285df99a03825b36a87eb67cad Maintainer: mowangjuanzi Status: ready -->
3+
<!-- EN-Revision: 23ea6be076881a34e1d454e9680968ece085f7f6 Maintainer: mowangjuanzi Status: ready -->
4+
<!-- CREDITS: Luffy -->
45
<book xml:id="book.event" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
56
<?phpdoc extension-membership="pecl" ?>
67
<title>Event</title>

0 commit comments

Comments
 (0)