Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 4 additions & 18 deletions features/commandline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<title>Using PHP from the command line</title>
<titleabbrev>Command line usage</titleabbrev>

<!--Introduction: {{{-->
<section xml:id="features.commandline.introduction" annotations="chunk:false">
<title>Introduction</title>

Expand Down Expand Up @@ -82,9 +81,7 @@
</para>
</note>
</section>
<!--}}}-->

<!--Differences: {{{-->

<section xml:id="features.commandline.differences">
<title>Differences to other <acronym>SAPI</acronym>s</title>

Expand Down Expand Up @@ -319,9 +316,7 @@ $ php -f another_directory/test.php
</itemizedlist>
</para>
</section>
<!--}}}-->

<!--Options: {{{-->

<section xml:id="features.commandline.options">
<title>Command line options</title>
<titleabbrev>Options</titleabbrev>
Expand Down Expand Up @@ -1032,9 +1027,7 @@ date.sunrise_zenith => 90.583333 => 90.583333
</para>
</note>
</section>
<!--}}}-->

<!--Usage: {{{-->

<section xml:id="features.commandline.usage">
<title>Executing PHP files</title>
<titleabbrev>Usage</titleabbrev>
Expand Down Expand Up @@ -1311,9 +1304,7 @@ This is a command line PHP script with one option.
</para>
</note>
</section>
<!--}}}-->

<!--I/O Streams: {{{-->

<section xml:id="features.commandline.io-streams">
<title>Input/output streams</title>
<titleabbrev>I/O streams</titleabbrev>
Expand Down Expand Up @@ -1413,9 +1404,7 @@ php -r 'fwrite(STDERR, "stderr\n");'
</para>
</note>
</section>
<!--}}}-->

<!--Interactive shell: {{{-->
<section xml:id="features.commandline.interactive">
<title>Interactive shell</title>

Expand Down Expand Up @@ -1633,9 +1622,7 @@ php >
</para>
</section>
</section>
<!--}}}-->

<!--Built-in CLI Web Server: {{{-->
<section xml:id="features.commandline.webserver">
<title>Built-in web server</title>

Expand Down Expand Up @@ -1915,7 +1902,6 @@ $ php -S 0.0.0.0:8000
</example>

</section>
<!--}}}-->

<section xml:id="features.commandline.ini">
<title>INI settings</title>
Expand Down
4 changes: 2 additions & 2 deletions language/context/ftp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</para>
</refsect1>

<refsect1 role="options"><!-- {{{ -->
<refsect1 role="options">
&reftitle.options;
<para>
<variablelist>
Expand Down Expand Up @@ -62,7 +62,7 @@
</varlistentry>
</variablelist>
</para>
</refsect1><!-- }}} -->
</refsect1>

<refsect1 role="notes">
&reftitle.notes;
Expand Down
16 changes: 8 additions & 8 deletions language/context/http.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</para>
</refsect1>

<refsect1 role="options"><!-- {{{ -->
<refsect1 role="options">
&reftitle.options;
<para>
<variablelist>
Expand Down Expand Up @@ -196,12 +196,12 @@
</varlistentry>
</variablelist>
</para>
</refsect1><!-- }}} -->
</refsect1>

<refsect1 role="examples"><!-- {{{ -->
<refsect1 role="examples">
&reftitle.examples;
<para>
<example xml:id="context.http.example-post"><!-- {{{ -->
<example xml:id="context.http.example-post">
<title>Fetch a page and send POST data</title>
<programlisting role="php">
<![CDATA[
Expand Down Expand Up @@ -229,10 +229,10 @@ $result = file_get_contents('http://example.com/submit.php', false, $context);
?>
]]>
</programlisting>
</example><!-- }}} -->
</example>
</para>
<para>
<example xml:id="context.http.example-fetch-ignore-redirect"><!-- {{{ -->
<example xml:id="context.http.example-fetch-ignore-redirect">
<title>Ignore redirects but fetch headers and content</title>
<programlisting role="php">
<![CDATA[
Expand Down Expand Up @@ -261,9 +261,9 @@ fclose($stream);
?>
]]>
</programlisting>
</example><!-- }}} -->
</example>
</para>
</refsect1><!-- }}} -->
</refsect1>

<refsect1 role="notes">
&reftitle.notes;
Expand Down
4 changes: 2 additions & 2 deletions language/context/parameters.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</para>
</refsect1>

<refsect1 role="options"><!-- {{{ -->
<refsect1 role="options">
&reftitle.parameters;
<para>
<variablelist>
Expand All @@ -36,7 +36,7 @@
</varlistentry>
</variablelist>
</para>
</refsect1><!-- }}} -->
</refsect1>

</refentry>

Expand Down
4 changes: 2 additions & 2 deletions language/context/phar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</para>
</refsect1>

<refsect1 role="options"><!-- {{{ -->
<refsect1 role="options">
&reftitle.options;
<para>
<variablelist>
Expand Down Expand Up @@ -42,7 +42,7 @@
</varlistentry>
</variablelist>
</para>
</refsect1><!-- }}} -->
</refsect1>

<refsect1 role="seealso">
&reftitle.seealso;
Expand Down
20 changes: 10 additions & 10 deletions language/context/socket.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
<refpurpose>Socket context option listing</refpurpose>
</refnamediv>

<refsect1 role="description"><!-- {{{ -->
<refsect1 role="description">
&reftitle.description;
<para>
Socket context options are available for all wrappers that work over
sockets, like <literal>tcp</literal>, <literal>http</literal> and
<literal>ftp</literal>.
</para>
</refsect1><!-- }}} -->
</refsect1>

<refsect1 role="options"><!-- {{{ -->
<refsect1 role="options">
&reftitle.options;
<para>
<variablelist>
Expand Down Expand Up @@ -107,9 +107,9 @@
</varlistentry>
</variablelist>
</para>
</refsect1><!-- }}} -->
</refsect1>

<refsect1 role="changelog"><!-- {{{ -->
<refsect1 role="changelog">
&reftitle.changelog;
<para>
<informaltable>
Expand Down Expand Up @@ -137,12 +137,12 @@
</tgroup>
</informaltable>
</para>
</refsect1><!-- }}} -->
</refsect1>

<refsect1 role="examples"><!-- {{{ -->
<refsect1 role="examples">
&reftitle.examples;
<para>
<example xml:id="context.socket.example-bindto"><!-- {{{ -->
<example xml:id="context.socket.example-bindto">
<title>Basic <parameter>bindto</parameter> usage example</title>
<programlisting role="php">
<![CDATA[
Expand Down Expand Up @@ -189,9 +189,9 @@ echo file_get_contents('http://www.example.com', false, $context);
?>
]]>
</programlisting>
</example><!-- }}} -->
</example>
</para>
</refsect1><!-- }}} -->
</refsect1>

</refentry>

Expand Down
8 changes: 4 additions & 4 deletions language/context/ssl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</para>
</refsect1>

<refsect1 role="options"><!-- {{{ -->
<refsect1 role="options">
&reftitle.options;
<para>
<variablelist>
Expand Down Expand Up @@ -255,9 +255,9 @@
</varlistentry>
</variablelist>
</para>
</refsect1><!-- }}} -->
</refsect1>

<refsect1 role="changelog"><!-- {{{ -->
<refsect1 role="changelog">
&reftitle.changelog;
<para>
<informaltable>
Expand All @@ -279,7 +279,7 @@
</tgroup>
</informaltable>
</para>
</refsect1><!-- }}} -->
</refsect1>

<refsect1 role="notes">
&reftitle.notes;
Expand Down
20 changes: 10 additions & 10 deletions language/context/zip.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
<refpurpose>Zip context option listing</refpurpose>
</refnamediv>

<refsect1 role="description"><!-- {{{ -->
<refsect1 role="description">
&reftitle.description;
<para>
Zip context options are available for <literal>zip</literal> wrappers.
</para>
</refsect1><!-- }}} -->
</refsect1>

<refsect1 role="options"><!-- {{{ -->
<refsect1 role="options">
&reftitle.options;
<para>
<variablelist>
Expand All @@ -28,9 +28,9 @@
</varlistentry>
</variablelist>
</para>
</refsect1><!-- }}} -->
</refsect1>

<refsect1 role="changelog"><!-- {{{ -->
<refsect1 role="changelog">
&reftitle.changelog;
<para>
<informaltable>
Expand All @@ -52,12 +52,12 @@
</tgroup>
</informaltable>
</para>
</refsect1><!-- }}} -->
</refsect1>

<refsect1 role="examples"><!-- {{{ -->
<refsect1 role="examples">
&reftitle.examples;
<para>
<example xml:id="context.zip.example-password"><!-- {{{ -->
<example xml:id="context.zip.example-password">
<title>Basic <parameter>password</parameter> usage example</title>
<programlisting role="php">
<![CDATA[
Expand All @@ -77,9 +77,9 @@ echo file_get_contents('zip://test.zip#test.txt', false, $context);
?>
]]>
</programlisting>
</example><!-- }}} -->
</example>
</para>
</refsect1><!-- }}} -->
</refsect1>

</refentry>

Expand Down
4 changes: 2 additions & 2 deletions language/fibers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</simpara>
</note>

<example xml:id="language.fiber.example.basic"><!-- {{{ -->
<example xml:id="language.fiber.example.basic">
<title>Basic usage</title>
<programlisting role="php">
<![CDATA[
Expand All @@ -67,7 +67,7 @@ Value from fiber suspending: fiber
Value used to resume fiber: test
]]>
</screen>
</example><!-- }}} -->
</example>

</simplesect>

Expand Down
19 changes: 7 additions & 12 deletions language/predefined/argumentcounterror.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,24 @@
<reference xml:id="class.argumentcounterror" role="exception" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>ArgumentCountError</title>
<titleabbrev>ArgumentCountError</titleabbrev>

<partintro>

<!-- {{{ Error intro -->

<section xml:id="argumentcounterror.intro">
&reftitle.intro;
<para>
<ooclass><classname>ArgumentCountError</classname></ooclass> is thrown
when too few arguments are passed to a user-defined function or method.
</para>
<para>
<simpara>
This error is also thrown when too many arguments are passed to a
non-variadic built-in function.
</para>
</simpara>
</section>
<!-- }}} -->


<section xml:id="argumentcounterror.synopsis">
&reftitle.classsynopsis;

<!-- {{{ Synopsis -->

<classsynopsis class="class">
<ooexception>
<exceptionname>ArgumentCountError</exceptionname>
Expand All @@ -47,9 +44,7 @@
<xi:fallback/>
</xi:include>
</classsynopsis>

<!-- }}} -->


</section>
</partintro>
</reference>
Expand Down
Loading