mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 08:28:54 +00:00
Remove inline PHP 4 refereces - part 1
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334726 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
cf75db4067
commit
2bb07c8c43
14 changed files with 70 additions and 227 deletions
|
@ -47,13 +47,6 @@
|
|||
|
||||
<sect2 xml:id="configure.options">
|
||||
<title>Configure Options in PHP</title>
|
||||
<note>
|
||||
<para>
|
||||
These options are only used in PHP as of PHP 4.1.0, although some are
|
||||
available in older versions too. If you want to compile an older
|
||||
version, some options will probably not be available.
|
||||
</para>
|
||||
</note>
|
||||
&appendices.configure.misc;
|
||||
&appendices.configure.php;
|
||||
&appendices.configure.servers;
|
||||
|
|
|
@ -97,18 +97,6 @@ code!
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry xml:id="configure.enable-trans-sid">
|
||||
<term>
|
||||
<option role="configure">--enable-trans-sid</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Enable transparent session id propagation. Only valid for PHP 4.1.2 or
|
||||
less. From PHP 4.2.0, trans-sid feature is always compiled.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry xml:id="configure.with-tsrm-pthreads">
|
||||
<term>
|
||||
<option role="configure">--with-tsrm-pthreads</option>
|
||||
|
|
|
@ -270,18 +270,6 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry xml:id="configure.with-fastcgi">
|
||||
<term>
|
||||
<option role="configure">--with-fastcgi</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Build PHP as FastCGI application. No longer available as of PHP 4.3.0,
|
||||
instead you should use <option role="configure">--enable-fastcgi</option>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<!--<varlistentry xml:id="configure.disable-path-info-check">
|
||||
<term>
|
||||
<option role="configure">disable-path-info-check</option>
|
||||
|
@ -307,7 +295,7 @@
|
|||
<listitem>
|
||||
<para>
|
||||
If this is enabled, the CGI module will be built with support for FastCGI
|
||||
also. Available since PHP 4.3.0
|
||||
also.
|
||||
</para>
|
||||
<para>
|
||||
As of PHP 5.3.0 this argument no longer exists and is enabled by
|
||||
|
@ -323,8 +311,7 @@
|
|||
<listitem>
|
||||
<para>
|
||||
If this is disabled, paths such as <filename>/info.php/test?a=b</filename>
|
||||
will fail to work. Available since PHP 4.3.0.
|
||||
For more information see the
|
||||
will fail to work. For more information see the
|
||||
<link xlink:href="&url.apache.core;#acceptpathinfo">Apache Manual</link>.
|
||||
</para>
|
||||
</listitem>
|
||||
|
|
|
@ -47,7 +47,6 @@
|
|||
|
||||
<simpara>
|
||||
<literal>string.rot13</literal>
|
||||
(since PHP 4.3.0)
|
||||
Use of this filter is equivalent to processing all stream data through
|
||||
the <function>str_rot13</function> function.
|
||||
</simpara>
|
||||
|
@ -67,7 +66,6 @@ fwrite($fp, "This is a test.\n");
|
|||
|
||||
<simpara>
|
||||
<literal>string.toupper</literal>
|
||||
(since PHP 5.0.0)
|
||||
Use of this filter is equivalent to processing all stream data through
|
||||
the <function>strtoupper</function> function.
|
||||
</simpara>
|
||||
|
@ -87,7 +85,6 @@ fwrite($fp, "This is a test.\n");
|
|||
|
||||
<simpara>
|
||||
<literal>string.tolower</literal>
|
||||
(since PHP 5.0.0)
|
||||
Use of this filter is equivalent to processing all stream data through
|
||||
the <function>strtolower</function> function.
|
||||
</simpara>
|
||||
|
@ -282,8 +279,7 @@ fwrite($fp, "This is a test.\n");
|
|||
zlib.* compression filters are available with PHP as of version <literal>5.1.0</literal> if
|
||||
<link linkend="ref.zlib">zlib</link> support is enabled. They are also available as a backport in version
|
||||
<literal>5.0.x</literal> by installing the <link xlink:href="&url.pecl.package;zlib_filter">zlib_filter</link>
|
||||
package from <link xlink:href="&url.pecl;">PECL</link>. These filters are <emphasis>not</emphasis>
|
||||
available for PHP 4.
|
||||
package from <link xlink:href="&url.pecl;">PECL</link>.
|
||||
</simpara>
|
||||
|
||||
<example>
|
||||
|
@ -384,8 +380,7 @@ The compressed file is 56 bytes long.
|
|||
bzip2.* compression filters are available with PHP as of version <literal>5.1.0</literal> if
|
||||
<link linkend="ref.bzip2">bz2</link> support is enabled. They are also available as a backport in version
|
||||
<literal>5.0.x</literal> by installing the <link xlink:href="&url.pecl.package;bz2_filter">bz2_filter</link>
|
||||
package from <link xlink:href="&url.pecl;">PECL</link>. These filters are <emphasis>not</emphasis>
|
||||
available for PHP 4.
|
||||
package from <link xlink:href="&url.pecl;">PECL</link>.
|
||||
</simpara>
|
||||
|
||||
<example>
|
||||
|
|
|
@ -134,7 +134,7 @@
|
|||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
The Server API for this build of PHP. Available since PHP 4.2.0.
|
||||
The Server API for this build of PHP.
|
||||
See also <function>php_sapi_name</function>.
|
||||
</simpara>
|
||||
</listitem>
|
||||
|
@ -147,7 +147,7 @@
|
|||
<listitem>
|
||||
<simpara>
|
||||
The correct 'End Of Line' symbol for this platform.
|
||||
Available since PHP 4.3.10 and PHP 5.0.2
|
||||
Available since PHP 5.0.2
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -159,7 +159,7 @@
|
|||
<listitem>
|
||||
<simpara>
|
||||
The largest integer supported in this build of PHP. Usually int(2147483647).
|
||||
Available since PHP 4.4.0 and PHP 5.0.5
|
||||
Available since PHP 5.0.5
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -170,7 +170,7 @@
|
|||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Available since PHP 4.4.0 and PHP 5.0.5
|
||||
Available since PHP 5.0.5
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -225,7 +225,7 @@
|
|||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
The value "--prefix" was set to at configure. Available since PHP 4.3.0.
|
||||
The value "--prefix" was set to at configure.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -338,7 +338,7 @@
|
|||
<listitem>
|
||||
<simpara>
|
||||
The build-platform's shared library suffix, such as "so" (most Unixes)
|
||||
or "dll" (Windows). Available since PHP 4.3.0
|
||||
or "dll" (Windows).
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -503,7 +503,7 @@
|
|||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Available since PHP 5.0.0
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
|
@ -124,7 +124,6 @@
|
|||
<entry>__CLASS__</entry>
|
||||
<entry>
|
||||
<link linkend="language.constants.predefined">magic constants</link>
|
||||
(available since PHP 4.3.0)
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
|
@ -132,7 +131,6 @@
|
|||
<entry>clone</entry>
|
||||
<entry>
|
||||
<link linkend="language.oop5">classes and objects</link>
|
||||
(available since PHP 5.0.0)
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
|
@ -143,7 +141,7 @@
|
|||
</row>
|
||||
<row>
|
||||
<entry><constant>T_COMMENT</constant></entry>
|
||||
<entry>// or #, and /* */ in PHP 5</entry>
|
||||
<entry>// or #, and /* */</entry>
|
||||
<entry><link linkend="language.basic-syntax.comments">comments</link></entry>
|
||||
</row>
|
||||
<row>
|
||||
|
@ -212,7 +210,6 @@
|
|||
<entry>/** */</entry>
|
||||
<entry>
|
||||
<link linkend="language.basic-syntax.comments">PHPDoc style comments</link>
|
||||
(available since PHP 5.0.0)
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
|
@ -333,7 +330,7 @@
|
|||
<row>
|
||||
<entry><constant>T_FINAL</constant></entry>
|
||||
<entry>final</entry>
|
||||
<entry><xref linkend="language.oop5.final"/> (available since PHP 5.0.0)</entry>
|
||||
<entry><xref linkend="language.oop5.final"/></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><constant>T_FINALLY</constant></entry>
|
||||
|
@ -360,7 +357,6 @@
|
|||
<entry>__FUNCTION__</entry>
|
||||
<entry>
|
||||
<link linkend="language.constants.predefined">magic constants</link>
|
||||
(available since PHP 4.3.0)
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
|
@ -386,7 +382,7 @@
|
|||
<row>
|
||||
<entry><constant>T_IMPLEMENTS</constant></entry>
|
||||
<entry>implements</entry>
|
||||
<entry><xref linkend="language.oop5.interfaces"/> (available since PHP 5.0.0)</entry>
|
||||
<entry><xref linkend="language.oop5.interfaces"/></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><constant>T_INC</constant></entry>
|
||||
|
@ -415,7 +411,6 @@
|
|||
<entry>instanceof</entry>
|
||||
<entry>
|
||||
<link linkend="language.operators.type">type operators</link>
|
||||
(available since PHP 5.0.0)
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
|
@ -431,7 +426,7 @@
|
|||
<row>
|
||||
<entry><constant>T_INTERFACE</constant></entry>
|
||||
<entry>interface</entry>
|
||||
<entry><xref linkend="language.oop5.interfaces"/> (available since PHP 5.0.0)</entry>
|
||||
<entry><xref linkend="language.oop5.interfaces"/></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><constant>T_ISSET</constant></entry>
|
||||
|
@ -503,7 +498,6 @@
|
|||
<entry>__METHOD__</entry>
|
||||
<entry>
|
||||
<link linkend="language.constants.predefined">magic constants</link>
|
||||
(available since PHP 5.0.0)
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
|
@ -512,12 +506,6 @@
|
|||
<entry><link linkend="language.operators.assignment">assignment
|
||||
operators</link></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><constant>T_ML_COMMENT</constant></entry>
|
||||
<entry>/* and */</entry>
|
||||
<entry><link linkend="language.basic-syntax.comments">comments</link>
|
||||
(PHP 4 only)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><constant>T_MOD_EQUAL</constant></entry>
|
||||
<entry>%=</entry>
|
||||
|
@ -575,11 +563,6 @@
|
|||
<entry>-></entry>
|
||||
<entry><link linkend="language.oop5">classes and objects</link></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><constant>T_OLD_FUNCTION</constant></entry>
|
||||
<entry>old_function</entry>
|
||||
<entry>(PHP 4 only)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><constant>T_OPEN_TAG</constant></entry>
|
||||
<entry><?php, <? or <%</entry>
|
||||
|
@ -620,7 +603,6 @@
|
|||
<entry>private</entry>
|
||||
<entry>
|
||||
<link linkend="language.oop5">classes and objects</link>
|
||||
(available since PHP 5.0.0)
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
|
@ -628,7 +610,6 @@
|
|||
<entry>public</entry>
|
||||
<entry>
|
||||
<link linkend="language.oop5">classes and objects</link>
|
||||
(available since PHP 5.0.0)
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
|
@ -636,7 +617,6 @@
|
|||
<entry>protected</entry>
|
||||
<entry>
|
||||
<link linkend="language.oop5">classes and objects</link>
|
||||
(available since PHP 5.0.0)
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
|
@ -717,7 +697,7 @@
|
|||
<row>
|
||||
<entry><constant>T_THROW</constant></entry>
|
||||
<entry>throw</entry>
|
||||
<entry><xref linkend="language.exceptions"/> (available since PHP 5.0.0)</entry>
|
||||
<entry><xref linkend="language.exceptions"/></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><constant>T_TRAIT</constant></entry>
|
||||
|
@ -732,7 +712,7 @@
|
|||
<row>
|
||||
<entry><constant>T_TRY</constant></entry>
|
||||
<entry>try</entry>
|
||||
<entry><xref linkend="language.exceptions"/> (available since PHP 5.0.0)</entry>
|
||||
<entry><xref linkend="language.exceptions"/></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><constant>T_UNSET</constant></entry>
|
||||
|
@ -742,8 +722,7 @@
|
|||
<row>
|
||||
<entry><constant>T_UNSET_CAST</constant></entry>
|
||||
<entry>(unset)</entry>
|
||||
<entry><link linkend="language.types.typecasting">type-casting</link>
|
||||
(available since PHP 5.0.0)</entry>
|
||||
<entry><link linkend="language.types.typecasting">type-casting</link></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><constant>T_USE</constant></entry>
|
||||
|
|
|
@ -73,18 +73,15 @@
|
|||
<qandaentry xml:id="faq.com.q5">
|
||||
<question>
|
||||
<para>
|
||||
How can I trap COM errors ?
|
||||
How can I trap COM errors?
|
||||
</para>
|
||||
</question>
|
||||
<answer>
|
||||
<para>
|
||||
In PHP 5, the COM extension throws <literal>com_exception</literal>
|
||||
The COM extension throws <literal>com_exception</literal>
|
||||
exceptions, which you can catch and then inspect the <literal>code</literal>
|
||||
member to determine what to do next.
|
||||
</para>
|
||||
<para>
|
||||
In PHP 4 it's not possible to trap COM errors beside the ways provided by PHP itself (@, track_errors, ..).
|
||||
</para>
|
||||
</answer>
|
||||
</qandaentry>
|
||||
|
||||
|
|
|
@ -9,14 +9,14 @@
|
|||
<title>Introduction</title>
|
||||
|
||||
<para>
|
||||
PHP supports a &cli.sapi; as of PHP 4.3.0. The main focus of this
|
||||
<acronym>SAPI</acronym> is for developing shell applications with PHP. There
|
||||
The main focus of &cli.sapi;
|
||||
is for developing shell applications with PHP. There
|
||||
are quite a few differences between the &cli.sapi; and other
|
||||
<acronym>SAPI</acronym>s which are explained in this chapter. It is worth
|
||||
mentioning that &cli; and <acronym>CGI</acronym> are different
|
||||
<acronym>SAPI</acronym>s although they do share many of the same behaviors.
|
||||
</para>
|
||||
|
||||
|
||||
<para>
|
||||
The &cli.sapi; is enabled by default using
|
||||
<option role="configure">--enable-cli</option>, but may be disabled using
|
||||
|
|
|
@ -81,15 +81,8 @@
|
|||
</note>
|
||||
|
||||
<para>
|
||||
The global <varname>$_FILES</varname>
|
||||
exists as of PHP 4.1.0 (Use <varname>$HTTP_POST_FILES</varname>
|
||||
instead if using an earlier version).
|
||||
These arrays will contain all the uploaded file information.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The contents of <varname>$_FILES</varname>
|
||||
from the example form is as follows. Note that this assumes the use of
|
||||
The global <varname>$_FILES</varname> will contain all the uploaded file information.
|
||||
Its contents from the example form is as follows. Note that this assumes the use of
|
||||
the file upload name <emphasis>userfile</emphasis>, as used in the example
|
||||
script above. This can be any name.
|
||||
<variablelist>
|
||||
|
@ -135,7 +128,7 @@
|
|||
<listitem>
|
||||
<para>
|
||||
The <link linkend="features.file-upload.errors">error code</link>
|
||||
associated with this file upload. This element was added in PHP 4.2.0
|
||||
associated with this file upload.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -198,7 +191,7 @@ print "</pre>";
|
|||
use this only as first of a series of checks, because this value
|
||||
is completely under the control of the client and not checked on the PHP
|
||||
side.
|
||||
As of PHP 4.2.0, you could use <varname>$_FILES['userfile']['error']</varname>
|
||||
Also, you could use <varname>$_FILES['userfile']['error']</varname>
|
||||
and plan your logic according to the <link
|
||||
linkend="features.file-upload.errors">error codes</link>.
|
||||
Whatever the logic, you should either delete the file from the
|
||||
|
@ -254,7 +247,7 @@ foreach ($_FILES["pictures"]["error"] as $key => $error) {
|
|||
<sect1 xml:id="features.file-upload.errors">
|
||||
<title>Error Messages Explained</title>
|
||||
<simpara>
|
||||
Since PHP 4.2.0, PHP returns an appropriate error code along with the
|
||||
PHP returns an appropriate error code along with the
|
||||
file array. The error code can be found in the
|
||||
<literal>error</literal> segment of the file array that is created
|
||||
during the file upload by PHP. In other words, the error might be
|
||||
|
@ -309,8 +302,7 @@ foreach ($_FILES["pictures"]["error"] as $key => $error) {
|
|||
<term><constant>UPLOAD_ERR_NO_TMP_DIR</constant></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Value: 6; Missing a temporary folder. Introduced in PHP 4.3.10 and PHP
|
||||
5.0.3.
|
||||
Value: 6; Missing a temporary folder. Introduced in PHP 5.0.3.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -335,11 +327,6 @@ foreach ($_FILES["pictures"]["error"] as $key => $error) {
|
|||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
These became PHP constants in PHP 4.3.0.
|
||||
</para>
|
||||
</note>
|
||||
</sect1>
|
||||
|
||||
<sect1 xml:id="features.file-upload.common-pitfalls">
|
||||
|
|
|
@ -149,7 +149,7 @@ function http_digest_parse($txt)
|
|||
</para>
|
||||
|
||||
<simpara>
|
||||
As of PHP 4.3.0, in order to prevent someone from writing a script which
|
||||
In order to prevent someone from writing a script which
|
||||
reveals the password for a page that was authenticated through a
|
||||
traditional external mechanism, the PHP_AUTH variables will not be
|
||||
set if external authentication is enabled for that particular
|
||||
|
@ -219,21 +219,12 @@ if (!isset($_SERVER['PHP_AUTH_USER']) ||
|
|||
<literal>'_'</literal> key to clear their authentication information, however.
|
||||
</simpara>
|
||||
<simpara>
|
||||
Also note that until PHP 4.3.3, HTTP Authentication did not work
|
||||
using Microsoft's IIS server with the CGI version of PHP due to a
|
||||
limitation of IIS. In order to get it to work in PHP 4.3.3+,
|
||||
you must edit your IIS configuration "<literal>Directory Security</literal>".
|
||||
In order to get HTTP Authentication to work using IIS server with the CGI version
|
||||
of PHP you must edit your IIS configuration "<literal>Directory Security</literal>".
|
||||
Click on "<literal>Edit</literal>" and only check
|
||||
"<literal>Anonymous Access</literal>", all other fields
|
||||
should be left unchecked.
|
||||
</simpara>
|
||||
<simpara>
|
||||
Another limitation is if you're using the IIS module (ISAPI) and PHP 4, you
|
||||
may not use the <literal>PHP_AUTH_*</literal> variables but instead, the
|
||||
variable <literal>HTTP_AUTHORIZATION</literal> is available. For example,
|
||||
consider the following code: <literal>list($user, $pw) = explode(':',
|
||||
base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));</literal>
|
||||
</simpara>
|
||||
<note>
|
||||
<title>IIS Note:</title>
|
||||
<simpara>
|
||||
|
|
|
@ -15,25 +15,6 @@
|
|||
See <xref linkend="wrappers"/> for more information about the protocols
|
||||
supported by PHP.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
In PHP 4.0.3 and older, in order to use URL wrappers, you were required
|
||||
to configure PHP using the configure option
|
||||
<option>--enable-url-fopen-wrapper</option>.
|
||||
</para>
|
||||
</note>
|
||||
<para>
|
||||
<note>
|
||||
<para>
|
||||
The Windows versions of PHP earlier than PHP 4.3
|
||||
did not support remote file accessing for the following functions:
|
||||
<function>include</function>, <function>include_once</function>,
|
||||
<function>require</function>, <function>require_once</function>,
|
||||
and the imagecreatefromXXX functions in the <xref linkend="ref.image"/>
|
||||
extension.
|
||||
</para>
|
||||
</note>
|
||||
</para>
|
||||
<para>
|
||||
For example, you can use this to open a file on a remote web server,
|
||||
parse the output for the data you want, and then use that data in a
|
||||
|
|
|
@ -67,13 +67,13 @@
|
|||
<entry><link linkend="ini.safe-mode-gid">safe_mode_gid</link></entry>
|
||||
<entry>"0"</entry>
|
||||
<entry>PHP_INI_SYSTEM</entry>
|
||||
<entry>Available since PHP 4.1.0. Removed in PHP 5.4.0.</entry>
|
||||
<entry>Removed in PHP 5.4.0.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.safe-mode-include-dir">safe_mode_include_dir</link></entry>
|
||||
<entry>NULL</entry>
|
||||
<entry>PHP_INI_SYSTEM</entry>
|
||||
<entry>Available since PHP 4.1.0. Removed in PHP 5.4.0.</entry>
|
||||
<entry>Removed in PHP 5.4.0.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.safe-mode-exec-dir">safe_mode_exec_dir</link></entry>
|
||||
|
@ -146,7 +146,7 @@
|
|||
or full path must including).
|
||||
</para>
|
||||
<simpara>
|
||||
As of PHP 4.2.0, this directive can take a colon (semi-colon on
|
||||
This directive can take a colon (semi-colon on
|
||||
Windows) separated path in a fashion similar to the
|
||||
<link linkend="ini.include-path">include_path</link> directive,
|
||||
rather than just a single directory.
|
||||
|
@ -161,9 +161,7 @@
|
|||
</simpara>
|
||||
<simpara>
|
||||
If the value of this directive is empty, no files with different
|
||||
<literal>UID</literal>/<literal>GID</literal> can be included in
|
||||
PHP 4.2.3 and as of PHP 4.3.3. In earlier versions, all files could be
|
||||
included.
|
||||
<literal>UID</literal>/<literal>GID</literal> can be included.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -525,7 +523,7 @@ Warning: readfile() has been disabled for security reasons in
|
|||
<function>show_source</function>
|
||||
</entry>
|
||||
<entry>
|
||||
&sm.uidcheck; &sm.uidcheck.dir; (note: only affected since PHP 4.2.1)
|
||||
&sm.uidcheck; &sm.uidcheck.dir;
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
|
@ -533,7 +531,7 @@ Warning: readfile() has been disabled for security reasons in
|
|||
<function>parse_ini_file</function>
|
||||
</entry>
|
||||
<entry>
|
||||
&sm.uidcheck; &sm.uidcheck.dir; (note: only affected since PHP 4.2.1)
|
||||
&sm.uidcheck; &sm.uidcheck.dir;
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
|
@ -557,7 +555,7 @@ Warning: readfile() has been disabled for security reasons in
|
|||
<function>mail</function>
|
||||
</entry>
|
||||
<entry>
|
||||
In safe mode, the fifth parameter is disabled. (note: only affected since PHP 4.2.3)
|
||||
In safe mode, the fifth parameter is disabled.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
|
|
|
@ -127,8 +127,7 @@ $ svn checkout http://svn.php.net/repository/pecl/extname/trunk extname
|
|||
<title>Where to find an extension?</title>
|
||||
<para>
|
||||
PHP extensions are usually called "php_*.dll" (where the star represents the name of
|
||||
the extension) and they are located under the "PHP\ext" ("PHP\extensions" in PHP 4)
|
||||
folder.
|
||||
the extension) and they are located under the "PHP\ext" folder.
|
||||
</para>
|
||||
<para>
|
||||
PHP ships with the extensions most useful to the majority of developers. They are
|
||||
|
|
|
@ -19,41 +19,28 @@
|
|||
<emphasis>not</emphasis> used to load these extensions. The Windows
|
||||
<link linkend ="install.windows.extensions.overview">PHP Extensions</link>
|
||||
table lists extensions that require, or used to require, additional PHP
|
||||
DLL files. Here's a list of built in extensions:
|
||||
</para>
|
||||
<para>
|
||||
In PHP 4 (updated PHP 4.3.11):
|
||||
DLL files. Here's a list of built in extensions (updated PHP 5.0.4):
|
||||
<link linkend="book.bc">BCMath</link>,
|
||||
<link linkend="book.calendar">Caledar</link>,
|
||||
<link linkend="book.com">COM</link>,
|
||||
<link linkend="book.ctype">Ctype</link>,
|
||||
<link linkend="book.ftp">FTP</link>,
|
||||
<link linkend="book.mysql">MySQL</link>,
|
||||
<link linkend="book.uodbc">ODBC</link>,
|
||||
Overload,
|
||||
<link linkend="book.pcre">PCRE</link>,
|
||||
<link linkend="book.session">Session</link>,
|
||||
<link linkend="book.tokenizer">Tokenizer</link>,
|
||||
<link linkend="book.wddx">WDDX</link>,
|
||||
<link linkend="book.xml">XML</link>&listendand;
|
||||
<link linkend="book.zlib">Zlib</link>
|
||||
</para>
|
||||
<para>
|
||||
In PHP 5 (updated PHP 5.0.4), the following changes exist. Built in:
|
||||
<link linkend="book.dom">DOM</link>,
|
||||
<link linkend="book.ftp">FTP</link>,
|
||||
<link linkend="book.libxml">LibXML</link>,
|
||||
<link linkend="book.iconv">Iconv</link>,
|
||||
<link linkend="book.uodbc">ODBC</link>,
|
||||
<link linkend="book.pcre">PCRE</link>,
|
||||
<link linkend="book.session">Session</link>,
|
||||
<link linkend="book.simplexml">SimpleXML</link>,
|
||||
<link linkend="book.spl">SPL</link>&listendand;
|
||||
<link linkend="book.sqlite">SQLite</link>.
|
||||
And the following are no longer built in:
|
||||
<link linkend="book.mysql">MySQL</link> and
|
||||
Overload.
|
||||
<link linkend="book.spl">SPL</link>,
|
||||
<link linkend="book.sqlite">SQLite</link>,
|
||||
<link linkend="book.wddx">WDDX</link>,
|
||||
<link linkend="book.xml">XML</link>&listendand;
|
||||
<link linkend="book.zlib">Zlib</link>.
|
||||
</para>
|
||||
<para>
|
||||
The default location PHP searches for extensions is
|
||||
<filename class="directory">C:\php4\extensions</filename> in PHP 4 and
|
||||
<filename class="directory">C:\php5</filename> in PHP 5. To change this
|
||||
<filename class="directory">C:\php5</filename>. To change this
|
||||
setting to reflect your setup of PHP edit your &php.ini; file:
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
|
@ -93,14 +80,9 @@ extension=php_bz2.dll
|
|||
<listitem>
|
||||
<para>
|
||||
Some of the extensions need extra DLLs to work. Couple of them can be
|
||||
found in the distribution package, in the
|
||||
<filename class="directory">C:\php\dlls\</filename> folder in PHP 4 or
|
||||
in the main folder in PHP 5, but some, for example Oracle
|
||||
found in the distribution package, in the main folder, but some, for example Oracle
|
||||
(<filename>php_oci8.dll</filename>) require DLLs which are not bundled
|
||||
with the distribution package. If you are installing PHP 4, copy the
|
||||
bundled DLLs from <filename class="directory">C:\php\dlls</filename>
|
||||
folder to the main <filename class="directory">C:\php</filename>
|
||||
folder. Don't forget to include <filename
|
||||
with the distribution package. Don't forget to include <filename
|
||||
class="directory">C:\php</filename> in the system
|
||||
<varname>PATH</varname> (this process is explained in a separate <link
|
||||
linkend="faq.installation.addtopath">FAQ entry</link>).
|
||||
|
@ -148,7 +130,7 @@ extension=php_bz2.dll
|
|||
<row>
|
||||
<entry>php_calendar.dll</entry>
|
||||
<entry><link linkend="book.calendar">Calendar</link> conversion functions</entry>
|
||||
<entry>Built in since PHP 4.0.3</entry>
|
||||
<entry>None</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>php_crack.dll</entry>
|
||||
|
@ -158,7 +140,7 @@ extension=php_bz2.dll
|
|||
<row>
|
||||
<entry>php_ctype.dll</entry>
|
||||
<entry><link linkend="book.ctype">ctype</link> family functions</entry>
|
||||
<entry>Built in since PHP 4.3.0</entry>
|
||||
<entry>None</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>php_curl.dll</entry>
|
||||
|
@ -182,19 +164,6 @@ extension=php_bz2.dll
|
|||
<entry><link linkend="book.dbx">dbx</link> functions</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>php_domxml.dll</entry>
|
||||
<entry>PHP 4 domxml functions</entry>
|
||||
<entry>
|
||||
PHP <= 4.2.0 requires: <filename>libxml2.dll</filename> (bundled)
|
||||
PHP >= 4.3.0 requires: <filename>iconv.dll</filename> (bundled)
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>php_dotnet.dll</entry>
|
||||
<entry>.NET functions</entry>
|
||||
<entry>PHP <= 4.1.1</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>php_exif.dll</entry>
|
||||
<entry><link linkend="book.exif">EXIF</link> functions</entry>
|
||||
|
@ -207,7 +176,7 @@ extension=php_bz2.dll
|
|||
<row>
|
||||
<entry>php_fbsql.dll</entry>
|
||||
<entry><link linkend="book.fbsql">FrontBase</link> functions</entry>
|
||||
<entry>PHP <= 4.2.0</entry>
|
||||
<entry>None</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>php_fdf.dll</entry>
|
||||
|
@ -222,15 +191,7 @@ extension=php_bz2.dll
|
|||
<row>
|
||||
<entry>php_ftp.dll</entry>
|
||||
<entry><link linkend="book.ftp">FTP</link> functions</entry>
|
||||
<entry>Built-in since PHP 4.0.3</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>php_gd.dll</entry>
|
||||
<entry><link linkend="book.image">GD</link> library image functions</entry>
|
||||
<entry>
|
||||
Removed in PHP 4.3.2. Also note that truecolor functions are not
|
||||
available in GD1, instead, use <filename>php_gd2.dll</filename>.
|
||||
</entry>
|
||||
<entry>None</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>php_gd2.dll</entry>
|
||||
|
@ -254,8 +215,9 @@ extension=php_bz2.dll
|
|||
<row>
|
||||
<entry>php_iconv.dll</entry>
|
||||
<entry><link linkend="book.iconv">ICONV</link> characterset conversion</entry>
|
||||
<entry>Requires: <filename>iconv-1.3.dll</filename> (bundled),
|
||||
PHP >=4.2.1 <filename>iconv.dll</filename></entry>
|
||||
<entry>
|
||||
Requires: <filename>iconv-1.3.dll</filename> (bundled), <filename>iconv.dll</filename>
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>php_ifx.dll</entry>
|
||||
|
@ -282,17 +244,11 @@ extension=php_bz2.dll
|
|||
<entry><link linkend="book.ibase">InterBase</link> functions</entry>
|
||||
<entry>Requires: <filename>gds32.dll</filename> (bundled)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>php_java.dll</entry>
|
||||
<entry>Java functions</entry>
|
||||
<entry>PHP <= 4.0.6 requires: <filename>jvm.dll</filename> (bundled)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>php_ldap.dll</entry>
|
||||
<entry><link linkend="book.ldap">LDAP</link> functions</entry>
|
||||
<entry>
|
||||
PHP <= 4.2.0 requires <filename>libsasl.dll</filename> (bundled),
|
||||
PHP >= 4.3.0 requires <filename>libeay32.dll</filename>,
|
||||
Requires <filename>libeay32.dll</filename>,
|
||||
<filename>ssleay32.dll</filename> (bundled)
|
||||
</entry>
|
||||
</row>
|
||||
|
@ -309,7 +265,7 @@ extension=php_bz2.dll
|
|||
<row>
|
||||
<entry>php_mhash.dll</entry>
|
||||
<entry><link linkend="book.mhash">Mhash</link> functions</entry>
|
||||
<entry>PHP >= 4.3.0 requires: <filename>libmhash.dll</filename> (bundled)</entry>
|
||||
<entry>Requires: <filename>libmhash.dll</filename> (bundled)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>php_mime_magic.dll</entry>
|
||||
|
@ -334,13 +290,12 @@ extension=php_bz2.dll
|
|||
<row>
|
||||
<entry>php_mysql.dll</entry>
|
||||
<entry><link linkend="book.mysql">MySQL</link> functions</entry>
|
||||
<entry>PHP >= 5.0.0, requires <filename>libmysql.dll</filename>
|
||||
(bundled)</entry>
|
||||
<entry>Requires <filename>libmysql.dll</filename> (bundled)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>php_mysqli.dll</entry>
|
||||
<entry><link linkend="book.mysqli">MySQLi</link> functions</entry>
|
||||
<entry>PHP >= 5.0.0, requires <filename>libmysql.dll</filename>
|
||||
<entry>Requires <filename>libmysql.dll</filename>
|
||||
(<filename>libmysqli.dll</filename> in PHP <= 5.0.2) (bundled)</entry>
|
||||
</row>
|
||||
<row>
|
||||
|
@ -353,11 +308,6 @@ extension=php_bz2.dll
|
|||
<entry><link linkend="book.openssl">OpenSSL</link> functions</entry>
|
||||
<entry>Requires: <filename>libeay32.dll</filename> (bundled)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>php_overload.dll</entry>
|
||||
<entry>PHP 4 Object overloading functions</entry>
|
||||
<entry>Built in since PHP 4.3.0, removed as of PHP 5.0.0</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>php_pdf.dll</entry>
|
||||
<entry><link linkend="book.pdf">PDF</link> functions</entry>
|
||||
|
@ -381,7 +331,7 @@ extension=php_bz2.dll
|
|||
<row>
|
||||
<entry>php_soap.dll</entry>
|
||||
<entry><link linkend="book.soap">SOAP</link> functions</entry>
|
||||
<entry>PHP >= 5.0.0</entry>
|
||||
<entry>None</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>php_sockets.dll</entry>
|
||||
|
@ -396,12 +346,12 @@ extension=php_bz2.dll
|
|||
<row>
|
||||
<entry>php_tidy.dll</entry>
|
||||
<entry><link linkend="book.tidy">Tidy</link> functions</entry>
|
||||
<entry>PHP >= 5.0.0</entry>
|
||||
<entry>None</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>php_tokenizer.dll</entry>
|
||||
<entry><link linkend="book.tokenizer">Tokenizer</link> functions</entry>
|
||||
<entry>Built in since PHP 4.3.0</entry>
|
||||
<entry>None</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>php_w32api.dll</entry>
|
||||
|
@ -411,15 +361,13 @@ extension=php_bz2.dll
|
|||
<row>
|
||||
<entry>php_xmlrpc.dll</entry>
|
||||
<entry><link linkend="book.xmlrpc">XML-RPC</link> functions</entry>
|
||||
<entry>PHP >= 4.2.1 requires: <filename>iconv.dll</filename> (bundled)</entry>
|
||||
<entry>Requires: <filename>iconv.dll</filename> (bundled)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>php_xslt.dll</entry>
|
||||
<entry>XSLT functions</entry>
|
||||
<entry>
|
||||
PHP <= 4.2.0 requires <filename>sablot.dll</filename>,
|
||||
<filename>expat.dll</filename> (bundled). PHP >= 4.2.1 requires
|
||||
<filename>sablot.dll</filename>, <filename>expat.dll</filename>,
|
||||
Requires <filename>sablot.dll</filename>, <filename>expat.dll</filename>,
|
||||
<filename>iconv.dll</filename> (bundled).
|
||||
</entry>
|
||||
</row>
|
||||
|
@ -436,7 +384,7 @@ extension=php_bz2.dll
|
|||
<row>
|
||||
<entry>php_zlib.dll</entry>
|
||||
<entry><link linkend="book.zlib">ZLib</link> compression functions</entry>
|
||||
<entry>Built in since PHP 4.3.0</entry>
|
||||
<entry>None</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
|
|
Loading…
Reference in a new issue