bjori Tue May 22 17:07:23 2007 UTC
Modified files:
/phpdoc/en/features commandline.xml
Log:
Add examples for --rc, --re, --ri
Fix typo
http://cvs.php.net/viewvc.cgi/phpdoc/en/features/commandline.xml?r1=1.48&r2=1.49&diff_format=u
Index: phpdoc/en/features/commandline.xml
diff -u phpdoc/en/features/commandline.xml:1.48
phpdoc/en/features/commandline.xml:1.49
--- phpdoc/en/features/commandline.xml:1.48 Tue May 22 16:35:10 2007
+++ phpdoc/en/features/commandline.xml Tue May 22 17:07:23 2007
@@ -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 @@
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 @@
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>