Add examples for --rc, --re, --ri

Fix typo


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@236143 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Hannes Magnusson 2007-05-22 17:07:23 +00:00
parent 7a5d485944
commit 1be9d6e1dc

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.48 $ -->
<!-- $Revision: 1.49 $ -->
<chapter id="features.commandline">
<title>Using PHP from the command line</title>
<para>
@ -1046,7 +1046,42 @@ Function [ <internal> public function var_dump ] {
This option is only available if PHP was compiled with
<link linkend="language.oop5.reflection">Reflection</link> support.
</para>
</entry>
<para>
<example>
<title><literal>--rc</literal> example</title>
<programlisting role="shell">
<![CDATA[
$ php --rc Directory
Class [ <internal:standard> class Directory ] {
- Constants [0] {
}
- Static properties [0] {
}
- Static methods [0] {
}
- Properties [0] {
}
- Methods [3] {
Method [ <internal> public method close ] {
}
Method [ <internal> public method rewind ] {
}
Method [ <internal> public method read ] {
}
}
}
]]>
</programlisting>
</example>
</para>
</entry>
</row>
<row>
<entry>--re</entry>
@ -1060,16 +1095,60 @@ Function [ <internal> public function var_dump ] {
This option is only available if PHP was compiled with
<link linkend="language.oop5.reflection">Reflection</link> support.
</para>
<para>
<example>
<title><literal>--re</literal> example</title>
<programlisting role="shell">
<![CDATA[
$ php --re json
Extension [ <persistent> extension #19 json version 1.2.1 ] {
- Functions {
Function [ <internal> function json_encode ] {
}
Function [ <internal> function json_decode ] {
}
}
}
]]>
</programlisting>
</example>
</para>
</entry>
</row>
<row>
<entry>-ri</entry>
<entry>--ri</entry>
<entry>--rextinfo</entry>
<entry>
<para>
Shows the configuration information for the given extension (the same
information that is returned by <function>phpinfo</function>).
Available as of PHP 5.2.2.
Available as of PHP 5.2.2. The core configuration information
are available using "main" as extension name.
</para>
<para>
<example>
<title><literal>--ri</literal> example</title>
<programlisting role="shell">
<![CDATA[
$ php --ri date
date
date/time support => enabled
"Olson" Timezone Database Version => 2007.5
Timezone Database => internal
Default timezone => Europe/Oslo
Directive => Local Value => Master Value
date.timezone => Europe/Oslo => Europe/Oslo
date.default_latitude => 59.22482 => 59.22482
date.default_longitude => 11.018084 => 11.018084
date.sunset_zenith => 90.583333 => 90.583333
date.sunrise_zenith => 90.583333 => 90.583333
]]>
</programlisting>
</example>
</para>
</entry>
</row>