jmcastagnetto Wed Mar 7 03:24:24 2001 EDT
Modified files:
/phpdoc/en/functions info.xml
Log:
added documentation for zend_version
Index: phpdoc/en/functions/info.xml
diff -u phpdoc/en/functions/info.xml:1.38 phpdoc/en/functions/info.xml:1.39
--- phpdoc/en/functions/info.xml:1.38 Wed Nov 29 09:58:57 2000
+++ phpdoc/en/functions/info.xml Wed Mar 7 03:24:23 2001
@@ -75,45 +75,45 @@
<tgroup cols="4">
<thead>
<row>
- <entry>option</entry>
- <entry>ini-parameter</entry>
- <entry>default</entry>
- <entry>description</entry>
+ <entry>option</entry>
+ <entry>ini-parameter</entry>
+ <entry>default</entry>
+ <entry>description</entry>
</row>
</thead>
<tbody>
<row>
- <entry>ASSERT_ACTIVE</entry>
- <entry>assert.active</entry>
- <entry>1</entry>
- <entry>enable <function>assert</function>
evaluation</entry>
+ <entry>ASSERT_ACTIVE</entry>
+ <entry>assert.active</entry>
+ <entry>1</entry>
+ <entry>enable <function>assert</function> evaluation</entry>
</row>
<row>
- <entry>ASSERT_WARNING</entry>
- <entry>assert.warning</entry>
- <entry>1</entry>
- <entry>issue a PHP warning for each failed
assertion</entry>
+ <entry>ASSERT_WARNING</entry>
+ <entry>assert.warning</entry>
+ <entry>1</entry>
+ <entry>issue a PHP warning for each failed assertion</entry>
</row>
<row>
- <entry>ASSERT_BAIL</entry>
- <entry>assert.bail</entry>
- <entry>0</entry>
- <entry>terminate execution on failed assertions</entry>
+ <entry>ASSERT_BAIL</entry>
+ <entry>assert.bail</entry>
+ <entry>0</entry>
+ <entry>terminate execution on failed assertions</entry>
</row>
<row>
- <entry>ASSERT_QUIET_EVAL</entry>
- <entry>assert.quiet_eval</entry>
- <entry>0</entry>
- <entry>
- disable error_reporting during assertion expression
- evaluation
- </entry>
+ <entry>ASSERT_QUIET_EVAL</entry>
+ <entry>assert.quiet_eval</entry>
+ <entry>0</entry>
+ <entry>
+ disable error_reporting during assertion expression
+ evaluation
+ </entry>
</row>
<row>
- <entry>ASSERT_CALLBACK</entry>
- <entry>assert_callback</entry>
- <entry>(null)</entry>
- <entry>user function to call on failed
assertions</entry>
+ <entry>ASSERT_CALLBACK</entry>
+ <entry>assert_callback</entry>
+ <entry>(null)</entry>
+ <entry>user function to call on failed assertions</entry>
</row>
</tbody>
</tgroup>
@@ -170,7 +170,7 @@
<para>
Loads the PHP extension defined in
<parameter>library</parameter>. See also the <link
- linkend="ini.extension-dir">extension_dir</link> configuration
+ linkend="ini.extension-dir">extension_dir</link> configuration
directive.
</para>
</refsect1>
@@ -203,9 +203,9 @@
You can see a list of all the environmental variables by using
<function>phpinfo</function>. You can find out what many of them
mean by taking a look at the <ulink url="&url.cgispecs;">CGI
- specification</ulink>, specifically the <ulink
- url="&url.cgispec;">page on
- environmental variables</ulink>.
+ specification</ulink>, specifically the <ulink
+ url="&url.cgispec;">page on
+ environmental variables</ulink>.
<note>
<para>
This function does not work in ISAPI mode.
@@ -242,7 +242,7 @@
</simpara>
<simpara>
To check whether the system is using a <link
- linkend="configuration.file">configuration file</link>, try
+ linkend="configuration.file">configuration file</link>, try
retrieving the value of the cfg_file_path configuration
setting. If this is available, a configuration file is being
used.
@@ -392,7 +392,7 @@
</para>
<note>
<simpara>
- This function is not supported on Windows systems.
+ This function is not supported on Windows systems.
</simpara>
</note>
</refsect1>
@@ -645,10 +645,10 @@
</head>
<body>
<?php
- // some code of your own
- phpcredits(CREDITS_ALL + CREDITS_FULLPAGE);
- // some more code
- ?>
+ // some code of your own
+ phpcredits(CREDITS_ALL + CREDITS_FULLPAGE);
+ // some more code
+ ?>
</body>
</html>
</programlisting>
@@ -657,56 +657,56 @@
<para>
</para>
<para>
- <table>
+ <table>
<title>Pre-defined <function>phpcredits</function> flags</title>
<tgroup cols="2">
<thead>
- <row>
- <entry>name</entry>
- <entry>description</entry>
- </row>
+ <row>
+ <entry>name</entry>
+ <entry>description</entry>
+ </row>
</thead>
<tbody>
- <row>
- <entry>CREDITS_ALL</entry>
- <entry>
- All the credits, equivalent to using:
CREDITS_DOCS + CREDITS_GENERAL +
- CREDITS_GROUP + CREDITS_MODULES +
CREDITS_FULLPAGE. It generates a
- complete stand-alone HTML page with the
appropriate tags.
- </entry>
- </row>
- <row>
- <entry>CREDITS_DOCS</entry>
- <entry>The credits for the documentation team</entry>
- </row>
- <row>
- <entry>CREDITS_FULLPAGE</entry>
- <entry>
- Usually used in combination with the other
flags.
- Indicates that the a complete stand-alone HTML
page
- needs to be printed including the information
indicated
- by the other flags.
- </entry>
- </row>
- <row>
- <entry>CREDITS_GENERAL</entry>
- <entry>
- General credits: Language design and concept,
PHP 4.0 authors
- and SAPI module.
- </entry>
- </row>
- <row>
- <entry>CREDITS_GROUP</entry>
- <entry>A list of the core developers</entry>
- </row>
- <row>
- <entry>CREDITS_MODULES</entry>
- <entry>A list of the extension modules for PHP, and
their authors</entry>
- </row>
- <row>
- <entry>CREDITS_SAPI</entry>
- <entry>A list of the server API modules for PHP, and
their authors</entry>
- </row>
+ <row>
+ <entry>CREDITS_ALL</entry>
+ <entry>
+ All the credits, equivalent to using: CREDITS_DOCS + CREDITS_GENERAL +
+ CREDITS_GROUP + CREDITS_MODULES + CREDITS_FULLPAGE. It generates a
+ complete stand-alone HTML page with the appropriate tags.
+ </entry>
+ </row>
+ <row>
+ <entry>CREDITS_DOCS</entry>
+ <entry>The credits for the documentation team</entry>
+ </row>
+ <row>
+ <entry>CREDITS_FULLPAGE</entry>
+ <entry>
+ Usually used in combination with the other flags.
+ Indicates that the a complete stand-alone HTML page
+ needs to be printed including the information indicated
+ by the other flags.
+ </entry>
+ </row>
+ <row>
+ <entry>CREDITS_GENERAL</entry>
+ <entry>
+ General credits: Language design and concept, PHP 4.0 authors
+ and SAPI module.
+ </entry>
+ </row>
+ <row>
+ <entry>CREDITS_GROUP</entry>
+ <entry>A list of the core developers</entry>
+ </row>
+ <row>
+ <entry>CREDITS_MODULES</entry>
+ <entry>A list of the extension modules for PHP, and their authors</entry>
+ </row>
+ <row>
+ <entry>CREDITS_SAPI</entry>
+ <entry>A list of the server API modules for PHP, and their authors</entry>
+ </row>
</tbody>
</tgroup>
</table>
@@ -740,21 +740,21 @@
information, paths, master and local values of configuration
options, HTTP headers, and the PHP License.
</para>
- <para>
- The output may be customized by passing one or more of the
+ <para>
+ The output may be customized by passing one or more of the
following values ored together in the optional parameter
<parameter>what</parameter>.
- <itemizedlist>
- <listitem><simpara>INFO_GENERAL</simpara></listitem>
- <listitem><simpara>INFO_CREDITS</simpara></listitem>
- <listitem><simpara>INFO_CONFIGURATION</simpara></listitem>
- <listitem><simpara>INFO_MODULES</simpara></listitem>
- <listitem><simpara>INFO_ENVIRONMENT</simpara></listitem>
- <listitem><simpara>INFO_VARIABLES</simpara></listitem>
- <listitem><simpara>INFO_LICENSE</simpara></listitem>
- <listitem><simpara>INFO_ALL</simpara></listitem>
- </itemizedlist>
- </para>
+ <itemizedlist>
+ <listitem><simpara>INFO_GENERAL</simpara></listitem>
+ <listitem><simpara>INFO_CREDITS</simpara></listitem>
+ <listitem><simpara>INFO_CONFIGURATION</simpara></listitem>
+ <listitem><simpara>INFO_MODULES</simpara></listitem>
+ <listitem><simpara>INFO_ENVIRONMENT</simpara></listitem>
+ <listitem><simpara>INFO_VARIABLES</simpara></listitem>
+ <listitem><simpara>INFO_LICENSE</simpara></listitem>
+ <listitem><simpara>INFO_ALL</simpara></listitem>
+ </itemizedlist>
+ </para>
<para>
See also <function>phpversion</function>,
<function>phpcredits</function>,
@@ -790,7 +790,8 @@
<para>
See also <function>phpinfo</function>,
<function>phpcredits</function>,
- <function>php_logo_guid</function>
+ <function>php_logo_guid</function>,
+ <function>zend_version</function>.
</para>
</refsect1>
</refentry>
@@ -885,7 +886,7 @@
if (substr(php_uname(), 0, 7) == "Windows") {
die("Sorry, this script doesn't run on Windows.\n");
}
- </programlisting>
+ </programlisting>
</example>
</para>
</refsect1>
@@ -938,7 +939,7 @@
</funcsynopsis>
<simpara>
Set the current active configuration setting of <link
- linkend="ini.magic-quotes-runtime">magic_quotes_runtime</link>.
+ linkend="ini.magic-quotes-runtime">magic_quotes_runtime</link>.
(0 for off, 1 for on)
</simpara>
<simpara>
@@ -966,7 +967,7 @@
reached, the script returns a fatal error. The default limit is
30 seconds or, if it exists, the max_execution_time value defined
in the <link linkend="configuration.file">configuration
- file</link>. If seconds is set to zero, no time limit is
+ file</link>. If seconds is set to zero, no time limit is
imposed.
</simpara>
<simpara>
@@ -980,7 +981,7 @@
Note that <function>set_time_limit</function> has no effect when
PHP is running in safe mode. There is no workaround other than
turning off safe mode or changing the time limit in the <link
- linkend="configuration.file">configuration file</link>.
+ linkend="configuration.file">configuration file</link>.
</simpara>
</refsect1>
</refentry>
@@ -1043,15 +1044,15 @@
[0] => xml
[1] => wddx
[2] => standard
- [3] => session
- [4] => posix
- [5] => pgsql
- [6] => pcre
- [7] => gd
- [8] => ftp
- [9] => db
- [10] => Calendar
- [11] => bcmath
+ [3] => session
+ [4] => posix
+ [5] => pgsql
+ [6] => pcre
+ [7] => gd
+ [8] => ftp
+ [9] => db
+ [10] => Calendar
+ [11] => bcmath
)
</programlisting>
</informalexample>
@@ -1087,7 +1088,7 @@
<programlisting>
print_r (get_extension_funcs ("xml"));
print_r (get_extension_funcs ("gd"));
- </programlisting>
+ </programlisting>
</informalexample>
will print a list of the functions in the modules
<varname>xml</varname> and <varname>gd</varname> respectively.
@@ -1216,6 +1217,39 @@
See also: <function>require_once</function>,
<function>include_once</function>,
<function>get_required_files</function>
+ </para>
+ </refsect1>
+ </refentry>
+
+ <refentry id="function.zend-version">
+ <refnamediv>
+ <refname>zend_version</refname>
+ <refpurpose>Get the version of the current Zend engine.</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>string <function>zendversion</function></funcdef>
+ <paramdef>void<parameter></parameter></paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ Returns a string containing the version of the currently running
+ PHP parser.
+ <example>
+ <title>zendversion() example</title>
+ <programlisting role="php">
+// prints e.g. 'Zend engine version: 1.0.4'
+echo "Zend engine version: ".zend_version();
+ </programlisting>
+ </example>
+ </para>
+ <para>
+ See also <function>phpinfo</function>,
+ <function>phpcredits</function>,
+ <function>php_logo_guid</function>
+ <function>phpversion</function>.
</para>
</refsect1>
</refentry>