added documentation for zend_version

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@42869 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jesus M. Castagnetto 2001-03-07 11:24:23 +00:00
parent 5564e0ec80
commit d0d922c597

View file

@ -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 @@ $ip = getenv ("REMOTE_ADDR"); // get the ip number of the user
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 @@ $ip = getenv ("REMOTE_ADDR"); // get the ip number of the user
</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 @@ echo "Last modified: ".date ("F d Y H:i:s.", getlastmod());
</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 @@ phpcredits(CREDITS_GROUP + CREDITS_DOCS + CREDITS_FULLPAGE);
&lt;/head&gt;
&lt;body&gt;
&lt;?php
// some code of your own
phpcredits(CREDITS_ALL + CREDITS_FULLPAGE);
// some more code
?&gt;
// some code of your own
phpcredits(CREDITS_ALL + CREDITS_FULLPAGE);
// some more code
?&gt;
&lt;/body&gt;
&lt;/html&gt;
</programlisting>
@ -657,56 +657,56 @@ phpcredits(CREDITS_GROUP + CREDITS_DOCS + CREDITS_FULLPAGE);
<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 @@ phpcredits(CREDITS_GROUP + CREDITS_DOCS + CREDITS_FULLPAGE);
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 @@ echo "Current PHP version: ".phpversion();
<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 @@ else
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 @@ putenv ("UNIQID=$uniqid");
</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 @@ putenv ("UNIQID=$uniqid");
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 @@ putenv ("UNIQID=$uniqid");
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 @@ Array
[0] =&gt; xml
[1] =&gt; wddx
[2] =&gt; standard
[3] =&gt; session
[4] =&gt; posix
[5] =&gt; pgsql
[6] =&gt; pcre
[7] =&gt; gd
[8] =&gt; ftp
[9] =&gt; db
[10] =&gt; Calendar
[11] =&gt; bcmath
[3] =&gt; session
[4] =&gt; posix
[5] =&gt; pgsql
[6] =&gt; pcre
[7] =&gt; gd
[8] =&gt; ftp
[9] =&gt; db
[10] =&gt; Calendar
[11] =&gt; bcmath
)
</programlisting>
</informalexample>
@ -1087,7 +1088,7 @@ Array
<programlisting>
print_r (get_extension_funcs (&quot;xml&quot;));
print_r (get_extension_funcs (&quot;gd&quot;));
</programlisting>
</programlisting>
</informalexample>
will print a list of the functions in the modules
<varname>xml</varname> and <varname>gd</varname> respectively.
@ -1220,6 +1221,39 @@ Array
</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>
</reference>
<!-- Keep this comment at the end of the file