mirror of
https://github.com/php/doc-en.git
synced 2026-03-23 23:32:18 +01:00
Another round of PHP 4 content removal (mostly inline mentions)
Review is welcome git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341282 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
@@ -15,35 +15,6 @@
|
||||
The defaults listed here are used when &php.ini; is not loaded; the values for the production and development &php.ini; may vary.
|
||||
</para>
|
||||
</note>
|
||||
<section xml:id="ini.sect.httpd-options">
|
||||
<title>Httpd Options</title>
|
||||
<para>
|
||||
<table>
|
||||
<title>Httpd Options</title>
|
||||
<tgroup cols="4">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Name;</entry>
|
||||
<entry>&Default;</entry>
|
||||
<entry>&Changeable;</entry>
|
||||
<entry>&Changelog;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>async_send</entry>
|
||||
<entry>"0"</entry>
|
||||
<entry>PHP_INI_ALL</entry>
|
||||
<entry>Available since PHP 4.2.0. Removed in PHP 4.3.0.</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
<para>
|
||||
</para>
|
||||
</section>
|
||||
|
||||
<section xml:id="ini.sect.language-options">
|
||||
<title>Language Options</title>
|
||||
<para>
|
||||
@@ -63,13 +34,13 @@
|
||||
<entry><link linkend="ini.short-open-tag">short_open_tag</link></entry>
|
||||
<entry>"1"</entry>
|
||||
<entry>PHP_INI_PERDIR</entry>
|
||||
<entry>PHP_INI_ALL in PHP 4.0.0. PHP_INI_PERDIR in PHP >= 4.0.1.</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.asp-tags">asp_tags</link></entry>
|
||||
<entry>"0"</entry>
|
||||
<entry>PHP_INI_PERDIR</entry>
|
||||
<entry>PHP_INI_ALL in PHP 4.0.0. Removed in PHP 7.0.0.</entry>
|
||||
<entry>Removed in PHP 7.0.0.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.precision">precision</link></entry>
|
||||
@@ -81,7 +52,7 @@
|
||||
<entry><link linkend="ini.serialize-precision">serialize_precision</link></entry>
|
||||
<entry>"17"</entry>
|
||||
<entry>PHP_INI_ALL</entry>
|
||||
<entry>Available since PHP 4.3.2. Until PHP 5.3.5, the default value was 100.</entry>
|
||||
<entry>Until PHP 5.3.5, the default value was 100.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.y2k-compliance">y2k_compliance</link></entry>
|
||||
@@ -93,19 +64,19 @@
|
||||
<entry><link linkend="ini.allow-call-time-pass-reference">allow_call_time_pass_reference</link></entry>
|
||||
<entry>"1"</entry>
|
||||
<entry>PHP_INI_PERDIR</entry>
|
||||
<entry>PHP_INI_ALL in PHP 4.0.0. Removed in PHP 5.4.0.</entry>
|
||||
<entry>Removed in PHP 5.4.0.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.disable-functions">disable_functions</link></entry>
|
||||
<entry>""</entry>
|
||||
<entry>PHP_INI_SYSTEM only</entry>
|
||||
<entry>Available since PHP 4.0.1.</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.disable-classes">disable_classes</link></entry>
|
||||
<entry>""</entry>
|
||||
<entry>&php.ini; only</entry>
|
||||
<entry>Available since PHP 4.3.2.</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.exit-on-timeout">exit_on_timeout</link></entry>
|
||||
@@ -153,7 +124,7 @@
|
||||
<entry><link linkend="ini.zend.ze1-compatibility-mode">zend.ze1_compatibility_mode</link></entry>
|
||||
<entry>"0"</entry>
|
||||
<entry>PHP_INI_ALL</entry>
|
||||
<entry>Available since PHP 5.0.0. Removed in PHP 5.3.0</entry>
|
||||
<entry>Removed in PHP 5.3.0</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>detect_unicode</entry>
|
||||
@@ -700,13 +671,13 @@
|
||||
<entry><link linkend="ini.arg-separator.output">arg_separator.output</link></entry>
|
||||
<entry>"&"</entry>
|
||||
<entry>PHP_INI_ALL</entry>
|
||||
<entry>Available since PHP 4.0.5.</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.arg-separator.input">arg_separator.input</link></entry>
|
||||
<entry>"&"</entry>
|
||||
<entry>PHP_INI_PERDIR</entry>
|
||||
<entry>Available since PHP 4.0.5.</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.variables-order">variables_order</link></entry>
|
||||
@@ -730,19 +701,19 @@
|
||||
<entry><link linkend="ini.register-globals">register_globals</link></entry>
|
||||
<entry>"0"</entry>
|
||||
<entry>PHP_INI_PERDIR</entry>
|
||||
<entry>PHP_INI_ALL in PHP <= 4.2.3. Removed in PHP 5.4.0.</entry>
|
||||
<entry>Removed in PHP 5.4.0.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.register-argc-argv">register_argc_argv</link></entry>
|
||||
<entry>"1"</entry>
|
||||
<entry>PHP_INI_PERDIR</entry>
|
||||
<entry>PHP_INI_ALL in PHP <= 4.2.3.</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.register-long-arrays">register_long_arrays</link></entry>
|
||||
<entry>"1"</entry>
|
||||
<entry>PHP_INI_PERDIR</entry>
|
||||
<entry>Available since PHP 5.0.0. Deprecated in PHP 5.3.0. Removed in PHP 5.4.0.</entry>
|
||||
<entry>Deprecated in PHP 5.3.0. Removed in PHP 5.4.0.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.enable-post-data-reading">enable_post_data_reading</link></entry>
|
||||
@@ -754,19 +725,19 @@
|
||||
<entry><link linkend="ini.post-max-size">post_max_size</link></entry>
|
||||
<entry>"8M"</entry>
|
||||
<entry>PHP_INI_PERDIR</entry>
|
||||
<entry>PHP_INI_SYSTEM in PHP <= 4.2.3. Available since PHP 4.0.3.</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.auto-prepend-file">auto_prepend_file</link></entry>
|
||||
<entry>NULL</entry>
|
||||
<entry>PHP_INI_PERDIR</entry>
|
||||
<entry>PHP_INI_ALL in PHP <= 4.2.3.</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.auto-append-file">auto_append_file</link></entry>
|
||||
<entry>NULL</entry>
|
||||
<entry>PHP_INI_PERDIR</entry>
|
||||
<entry>PHP_INI_ALL in PHP <= 4.2.3.</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.default-mimetype">default_mimetype</link></entry>
|
||||
@@ -784,7 +755,7 @@
|
||||
<entry><link linkend="ini.always-populate-raw-post-data">always_populate_raw_post_data</link></entry>
|
||||
<entry>"0"</entry>
|
||||
<entry>PHP_INI_PERDIR</entry>
|
||||
<entry>PHP_INI_ALL in PHP <= 4.2.3. Available since PHP 4.1.0. Removed in PHP 7.0.0.</entry>
|
||||
<entry>Removed in PHP 7.0.0.</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
@@ -1359,13 +1330,13 @@
|
||||
<entry><link linkend="ini.cgi.fix-pathinfo">cgi.fix_pathinfo</link></entry>
|
||||
<entry>"1"</entry>
|
||||
<entry>PHP_INI_SYSTEM</entry>
|
||||
<entry>Available since PHP 4.3.0. PHP_INI_ALL prior to PHP 5.2.1.</entry>
|
||||
<entry>PHP_INI_ALL prior to PHP 5.2.1.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.cgi.force-redirect">cgi.force_redirect</link></entry>
|
||||
<entry>"1"</entry>
|
||||
<entry>PHP_INI_SYSTEM</entry>
|
||||
<entry>Available since PHP 4.2.0. PHP_INI_ALL prior to PHP 5.2.1.</entry>
|
||||
<entry>PHP_INI_ALL prior to PHP 5.2.1.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.cgi.nph">cgi.nph</link></entry>
|
||||
@@ -1377,25 +1348,25 @@
|
||||
<entry><link linkend="ini.cgi.redirect-status-env">cgi.redirect_status_env</link></entry>
|
||||
<entry>NULL</entry>
|
||||
<entry>PHP_INI_SYSTEM</entry>
|
||||
<entry>Available since PHP 4.2.0. PHP_INI_ALL prior to PHP 5.2.1.</entry>
|
||||
<entry>PHP_INI_ALL prior to PHP 5.2.1.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.cgi.rfc2616-headers">cgi.rfc2616_headers</link></entry>
|
||||
<entry>"0"</entry>
|
||||
<entry>PHP_INI_ALL</entry>
|
||||
<entry>Available since PHP 4.3.0.</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.fastcgi.impersonate">fastcgi.impersonate</link></entry>
|
||||
<entry>"0"</entry>
|
||||
<entry>PHP_INI_SYSTEM</entry>
|
||||
<entry>Available since PHP 4.3.0. PHP_INI_ALL prior to PHP 5.2.1.</entry>
|
||||
<entry>PHP_INI_ALL prior to PHP 5.2.1.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.fastcgi.logging">fastcgi.logging</link></entry>
|
||||
<entry>"1"</entry>
|
||||
<entry>PHP_INI_SYSTEM</entry>
|
||||
<entry>Available since PHP 4.3.0. PHP_INI_ALL prior to PHP 5.2.1.</entry>
|
||||
<entry>PHP_INI_ALL prior to PHP 5.2.1.</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
@@ -1851,7 +1822,7 @@ include_path = ".:${USER}/pear/php"
|
||||
<entry><link linkend="ini.file-uploads">file_uploads</link></entry>
|
||||
<entry>"1"</entry>
|
||||
<entry>PHP_INI_SYSTEM</entry>
|
||||
<entry>PHP_INI_ALL in PHP <= 4.2.3. Available since PHP 4.0.3.</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.upload-tmp-dir">upload_tmp_dir</link></entry>
|
||||
@@ -1875,7 +1846,7 @@ include_path = ".:${USER}/pear/php"
|
||||
<entry><link linkend="ini.upload-max-filesize">upload_max_filesize</link></entry>
|
||||
<entry>"2M"</entry>
|
||||
<entry>PHP_INI_PERDIR</entry>
|
||||
<entry>PHP_INI_ALL in PHP <= 4.2.3.</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.max-file-uploads">max_file_uploads</link></entry>
|
||||
|
||||
@@ -2372,13 +2372,13 @@
|
||||
<entry><link linkend="ini.session.entropy-file">session.entropy_file</link></entry>
|
||||
<entry>""</entry>
|
||||
<entry>PHP_INI_ALL</entry>
|
||||
<entry>Removed from PHP 7.1.0.</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.session.entropy-length">session.entropy_length</link></entry>
|
||||
<entry>"0"</entry>
|
||||
<entry>PHP_INI_ALL</entry>
|
||||
<entry>Removed from PHP 7.1.0.</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.session.gc-divisor">session.gc_divisor</link></entry>
|
||||
@@ -2398,23 +2398,17 @@
|
||||
<entry>PHP_INI_ALL</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.session.sid-bits-per-character">session.sid_bits_per_character</link></entry>
|
||||
<entry>"32"</entry>
|
||||
<entry>PHP_INI_ALL</entry>
|
||||
<entry>Available since PHP 7.1.0.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.session.hash-bits-per-character">session.hash_bits_per_character</link></entry>
|
||||
<entry>"5"</entry>
|
||||
<entry>"4"</entry>
|
||||
<entry>PHP_INI_ALL</entry>
|
||||
<entry>Removed from PHP 7.1.0. Available since PHP 5.0.0.</entry>
|
||||
<entry>Available since PHP 5.0.0.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.session.hash-function">session.hash_function</link></entry>
|
||||
<entry>"0"</entry>
|
||||
<entry>PHP_INI_ALL</entry>
|
||||
<entry>Removed from PHP 7.1.0. Available since PHP 5.0.0.</entry>
|
||||
<entry>Available since PHP 5.0.0.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.session.lazy-write">session.lazy_write</link></entry>
|
||||
|
||||
@@ -390,7 +390,6 @@ foo(5); // Produces fatal error
|
||||
]]>
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
These requirements are for PHP 4.0.4 and later.
|
||||
</para>
|
||||
</sect1>
|
||||
|
||||
@@ -443,7 +442,7 @@ echo $myValue; // prints the new value of $obj->value, i.e. 2.
|
||||
work as you are attempting to return the result of an
|
||||
<emphasis>expression</emphasis>, and not a variable, by reference. You can
|
||||
only return variables by reference from a function - nothing else.
|
||||
Since PHP 4.4.0 in the PHP 4 branch, and PHP 5.1.0 in the PHP 5 branch, an
|
||||
Since PHP 5.1.0, an
|
||||
<constant>E_NOTICE</constant> error is issued if the code tries to return
|
||||
a dynamic expression or a result of the <literal>new</literal> operator.
|
||||
</simpara>
|
||||
|
||||
@@ -103,12 +103,6 @@ if ($show_separators) {
|
||||
an <link linkend="language.types.array">array</link> with zero elements
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
an <link linkend="language.types.object">object</link> with zero member
|
||||
variables (PHP 4 only)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
the special type <link linkend="language.types.null">NULL</link> (including
|
||||
|
||||
@@ -147,15 +147,6 @@ print implode(' ', $new_numbers);
|
||||
</example>
|
||||
</para>
|
||||
|
||||
<note>
|
||||
<simpara>
|
||||
In PHP 4, it was necessary to use a reference to create a callback that
|
||||
points to the actual <type>object</type>, and not a copy of it. For more
|
||||
details, see
|
||||
<link linkend="language.references">References Explained</link>.
|
||||
</simpara>
|
||||
</note>
|
||||
|
||||
¬e.func-callback-exceptions;
|
||||
</sect2>
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ integer : [+-]?decimal
|
||||
Windows prior to PHP 7, where it was always 32 bit. PHP does not support
|
||||
unsigned <type>integer</type>s. <type>Integer</type> size can be determined
|
||||
using the constant <constant>PHP_INT_SIZE</constant>, maximum value using
|
||||
the constant <constant>PHP_INT_MAX</constant> since PHP 4.4.0 and PHP 5.0.5,
|
||||
the constant <constant>PHP_INT_MAX</constant> since PHP 5.0.5,
|
||||
and minimum value using the constant <constant>PHP_INT_MIN</constant> since
|
||||
PHP 7.0.0.
|
||||
</para>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<title>Freeing resources</title>
|
||||
|
||||
<para>
|
||||
Thanks to the reference-counting system introduced with PHP 4's Zend Engine,
|
||||
Thanks to the reference-counting system being part of Zend Engine,
|
||||
a <type>resource</type> with no more references to it is detected
|
||||
automatically, and it is freed by the garbage collector. For this reason, it
|
||||
is rarely necessary to free the memory manually.
|
||||
|
||||
@@ -1013,12 +1013,8 @@ bool(false)
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<type>Object</type>s in PHP 4 are always converted to the <type>string</type>
|
||||
<literal>"Object"</literal>. To print the values of object properties for
|
||||
debugging reasons, read the paragraphs below. To get an object's class name,
|
||||
use the <function>get_class</function> function. As of PHP 5, the
|
||||
<link linkend="language.oop5.magic">__toString</link> method is used when
|
||||
applicable.
|
||||
In order to convert <type>object</type>s to <type>string</type> magic
|
||||
method <link linkend="language.oop5.magic">__toString</link> must be used.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
<listitem>
|
||||
<simpara>
|
||||
<constant>SORT_LOCALE_STRING</constant> is used to compare items as
|
||||
strings, based on the current locale. Added in PHP 4.4.0 and 5.0.2.
|
||||
strings, based on the current locale. Added in PHP 5.0.2.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
@@ -94,13 +94,6 @@
|
||||
are passed to it.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>4.2.0</entry>
|
||||
<entry>
|
||||
Prior to PHP 4.2.0, <function>array_search</function> returns &null;
|
||||
on failure instead of &false;.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
|
||||
@@ -4,6 +4,50 @@
|
||||
&reftitle.constants;
|
||||
&extension.constants;
|
||||
<variablelist>
|
||||
<varlistentry xml:id="constant.cal-easter-default">
|
||||
<term>
|
||||
<constant>CAL_EASTER_DEFAULT</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.cal-easter-roman">
|
||||
<term>
|
||||
<constant>CAL_EASTER_ROMAN</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.cal-easter-always-gregorian">
|
||||
<term>
|
||||
<constant>CAL_EASTER_ALWAYS_GREGORIAN</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.cal-easter-always-julian">
|
||||
<term>
|
||||
<constant>CAL_EASTER_ALWAYS_JULIAN</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.cal-gregorian">
|
||||
<term>
|
||||
<constant>CAL_GREGORIAN</constant>
|
||||
@@ -37,6 +81,39 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.cal-jewish-add-alafim-geresh">
|
||||
<term>
|
||||
<constant>CAL_JEWISH_ADD_ALAFIM_GERESH</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.cal-jewish-add-alafim">
|
||||
<term>
|
||||
<constant>CAL_JEWISH_ADD_ALAFIM</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.cal-jewish-add-gereshayim">
|
||||
<term>
|
||||
<constant>CAL_JEWISH_ADD_GERESHAYIM</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.cal-french">
|
||||
<term>
|
||||
<constant>CAL_FRENCH</constant>
|
||||
@@ -155,93 +232,6 @@
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
<para>
|
||||
The following constants are available since PHP 4.3.0 :
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry xml:id="constant.cal-easter-default">
|
||||
<term>
|
||||
<constant>CAL_EASTER_DEFAULT</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.cal-easter-roman">
|
||||
<term>
|
||||
<constant>CAL_EASTER_ROMAN</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.cal-easter-always-gregorian">
|
||||
<term>
|
||||
<constant>CAL_EASTER_ALWAYS_GREGORIAN</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.cal-easter-always-julian">
|
||||
<term>
|
||||
<constant>CAL_EASTER_ALWAYS_JULIAN</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
<para>
|
||||
The following constants are available since PHP 5.0.0 :
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry xml:id="constant.cal-jewish-add-alafim-geresh">
|
||||
<term>
|
||||
<constant>CAL_JEWISH_ADD_ALAFIM_GERESH</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.cal-jewish-add-alafim">
|
||||
<term>
|
||||
<constant>CAL_JEWISH_ADD_ALAFIM</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.cal-jewish-add-gereshayim">
|
||||
<term>
|
||||
<constant>CAL_JEWISH_ADD_GERESHAYIM</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
@@ -167,11 +167,6 @@
|
||||
can call the method very naturally; you needn't go to any extra effort in
|
||||
your code.
|
||||
</para>
|
||||
<para>
|
||||
In PHP 4, to pass parameters by reference you need to create an instance
|
||||
of the <xref linkend="class.variant"/> class to wrap the
|
||||
byref parameters.
|
||||
</para>
|
||||
</section>
|
||||
|
||||
<section xml:id="class.com.falsemethods">
|
||||
|
||||
@@ -30,22 +30,7 @@ Next
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>while() ... Next() in PHP 4</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$domainObject = new COM("WinNT://Domain");
|
||||
while ($obj = $domainObject->Next()) {
|
||||
echo $obj->Name . "<br />";
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>foreach in PHP 5</title>
|
||||
<title>foreach in PHP</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<section xml:id="crack.configuration" xmlns="http://docbook.org/ns/docbook">
|
||||
&reftitle.runtime;
|
||||
&extension.runtime;
|
||||
<para>
|
||||
<table>
|
||||
<title>Crack configuration options</title>
|
||||
<tgroup cols="4">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Name;</entry>
|
||||
<entry>&Default;</entry>
|
||||
<entry>&Changeable;</entry>
|
||||
<entry>&Changelog;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>crack.default_dictionary</entry>
|
||||
<entry>NULL</entry>
|
||||
<entry>PHP_INI_PERDIR</entry>
|
||||
<entry>PHP_INI_SYSTEM in crack <= 0.2. Available since PHP 4.0.5. Removed in PHP 5.0.0.</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
&ini.php.constants;
|
||||
</para>
|
||||
</section>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
sgml-omittag:t
|
||||
sgml-shorttag:t
|
||||
sgml-minimize-attributes:nil
|
||||
sgml-always-quote-attributes:t
|
||||
sgml-indent-step:1
|
||||
sgml-indent-data:t
|
||||
indent-tabs-mode:nil
|
||||
sgml-parent-document:nil
|
||||
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
||||
sgml-exposed-tags:nil
|
||||
sgml-local-catalogs:nil
|
||||
sgml-local-ecat-files:nil
|
||||
End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
|
||||
@@ -19,7 +19,10 @@
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Configuration -->
|
||||
&reference.crack.ini;
|
||||
<section xml:id="crack.configuration">
|
||||
&reftitle.runtime;
|
||||
&no.config;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Resources -->
|
||||
|
||||
@@ -19,9 +19,6 @@
|
||||
ftp extension), HTTP form based upload, proxies, cookies, and
|
||||
user+password authentication.
|
||||
</para>
|
||||
<para>
|
||||
These functions have been added in PHP 4.0.2.
|
||||
</para>
|
||||
</preface>
|
||||
<!-- }}} -->
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>W</literal></entry>
|
||||
<entry>ISO-8601 week number of year, weeks starting on Monday (added in PHP 4.1.0)</entry>
|
||||
<entry>ISO-8601 week number of year, weeks starting on Monday</entry>
|
||||
<entry>Example: <literal>42</literal> (the 42nd week in the year)</entry>
|
||||
</row>
|
||||
<row>
|
||||
|
||||
@@ -10,10 +10,7 @@
|
||||
&reftitle.intro;
|
||||
<para>
|
||||
The DOM extension allows you to operate on XML documents through the DOM
|
||||
API with PHP 5.
|
||||
</para>
|
||||
<para>
|
||||
Note: PHP 4 offers an older <literal>domxml</literal> extension.
|
||||
API with PHP.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
|
||||
@@ -13,49 +13,6 @@
|
||||
<para></para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.ftp-text">
|
||||
<term>
|
||||
<constant>FTP_TEXT</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<para>Alias of <constant>FTP_ASCII</constant>.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.ftp-binary">
|
||||
<term>
|
||||
<constant>FTP_BINARY</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<para></para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.ftp-image">
|
||||
<term>
|
||||
<constant>FTP_IMAGE</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<para>Alias of <constant>FTP_BINARY</constant>.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.ftp-timeout-sec">
|
||||
<term>
|
||||
<constant>FTP_TIMEOUT_SEC</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
See <function>ftp_set_option</function> for information.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
<para>
|
||||
The following constants were introduced in PHP 4.3.0.
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry xml:id="constant.ftp-autoseek">
|
||||
<term>
|
||||
<constant>FTP_AUTOSEEK</constant>
|
||||
@@ -112,6 +69,44 @@
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.ftp-text">
|
||||
<term>
|
||||
<constant>FTP_TEXT</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<para>Alias of <constant>FTP_ASCII</constant>.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.ftp-binary">
|
||||
<term>
|
||||
<constant>FTP_BINARY</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<para></para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.ftp-image">
|
||||
<term>
|
||||
<constant>FTP_IMAGE</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<para>Alias of <constant>FTP_BINARY</constant>.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.ftp-timeout-sec">
|
||||
<term>
|
||||
<constant>FTP_TIMEOUT_SEC</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
See <function>ftp_set_option</function> for information.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</appendix>
|
||||
|
||||
|
||||
@@ -7,10 +7,6 @@
|
||||
<!-- {{{ Requirements -->
|
||||
<section xml:id="gnupg.requirements">
|
||||
&reftitle.required;
|
||||
<para>
|
||||
The gnupg extension requires PHP 4.3.
|
||||
To use this extension in an OO style, PHP 5 is required.
|
||||
</para>
|
||||
<para>
|
||||
This extension requires the <link xlink:href="&url.gpgme;">gpgme library</link>
|
||||
</para>
|
||||
|
||||
@@ -11,16 +11,6 @@
|
||||
is used to specify the location of <emphasis>iconv</emphasis> on the system
|
||||
that PHP is being compiled on, otherwise only the default locations are scanned.
|
||||
</para>
|
||||
<note>
|
||||
<title>Note to PHP 4 users</title>
|
||||
<simpara>
|
||||
Enabling this extension requires building with
|
||||
<option role="configure">--with-iconv=[DIR]</option>, or Windows
|
||||
users may enable by having <filename>iconv.dll</filename>
|
||||
available in the system's <envar>PATH</envar>, and <filename>php_iconv.dll</filename>
|
||||
enabled in &php.ini;.
|
||||
</simpara>
|
||||
</note>
|
||||
</section>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
@@ -195,9 +195,8 @@ if($im)
|
||||
</note>
|
||||
<note>
|
||||
<para>
|
||||
As of PHP 4.0.2 you can use the function
|
||||
<function>imagetypes</function> in place of
|
||||
<function>function_exists</function> for checking
|
||||
You can use the function
|
||||
<function>imagetypes</function> for checking
|
||||
the presence of the various supported image formats:
|
||||
<informalexample>
|
||||
<programlisting role="php">
|
||||
|
||||
@@ -51,8 +51,7 @@
|
||||
</para>
|
||||
<para>
|
||||
Windows - If not explicitly set in the &php.ini;, the extension is
|
||||
loaded from <filename>C:\php4\extensions\</filename> (PHP 4) or
|
||||
<filename>C:\php5\</filename> (PHP 5) by default.
|
||||
loaded from <filename>C:\php5\</filename> by default.
|
||||
</para>
|
||||
<para>
|
||||
Unix - If not explicitly set in the &php.ini;, the default extension
|
||||
@@ -121,7 +120,7 @@ if (!extension_loaded('sqlite')) {
|
||||
}
|
||||
}
|
||||
|
||||
// Or, the PHP_SHLIB_SUFFIX constant is available as of PHP 4.3.0
|
||||
// Or using PHP_SHLIB_SUFFIX constant
|
||||
if (!extension_loaded('sqlite')) {
|
||||
$prefix = (PHP_SHLIB_SUFFIX === 'dll') ? 'php_' : '';
|
||||
dl($prefix . 'sqlite.' . PHP_SHLIB_SUFFIX);
|
||||
|
||||
@@ -33,10 +33,9 @@
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
// Works as of PHP 4.3.0
|
||||
echo get_include_path();
|
||||
|
||||
// Works in all PHP versions
|
||||
// Or using ini_get()
|
||||
echo ini_get('include_path');
|
||||
?>
|
||||
]]>
|
||||
|
||||
@@ -41,10 +41,9 @@ set_include_path('/inc');
|
||||
|
||||
echo get_include_path(); // /inc
|
||||
|
||||
// Works as of PHP 4.3.0
|
||||
restore_include_path();
|
||||
|
||||
// Works in all PHP versions
|
||||
// Or using ini_restore()
|
||||
ini_restore('include_path');
|
||||
|
||||
echo get_include_path(); // .:/usr/local/lib/php
|
||||
|
||||
@@ -51,10 +51,9 @@
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
// Works as of PHP 4.3.0
|
||||
set_include_path('/usr/lib/pear');
|
||||
|
||||
// Works in all PHP versions
|
||||
// Or using ini_set()
|
||||
ini_set('include_path', '/usr/lib/pear');
|
||||
?>
|
||||
]]>
|
||||
|
||||
@@ -106,8 +106,8 @@
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
if (version_compare(PHP_VERSION, '6.0.0') >= 0) {
|
||||
echo 'I am at least PHP version 6.0.0, my version: ' . PHP_VERSION . "\n";
|
||||
if (version_compare(PHP_VERSION, '7.0.0') >= 0) {
|
||||
echo 'I am at least PHP version 7.0.0, my version: ' . PHP_VERSION . "\n";
|
||||
}
|
||||
|
||||
if (version_compare(PHP_VERSION, '5.3.0') >= 0) {
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
<entry><link linkend="ini.max-input-nesting-level">max_input_nesting_level</link></entry>
|
||||
<entry>"64"</entry>
|
||||
<entry>PHP_INI_PERDIR</entry>
|
||||
<entry>Available since PHP 4.4.8 and PHP 5.2.3.</entry>
|
||||
<entry>Available since PHP 5.2.3.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.max-input-vars">max_input_vars</link></entry>
|
||||
@@ -303,12 +303,6 @@
|
||||
" (double quote), \ (backslash) and NUL's are escaped
|
||||
with a backslash automatically.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
In PHP 4, also <varname>$_ENV</varname>
|
||||
variables are escaped.
|
||||
</para>
|
||||
</note>
|
||||
<note>
|
||||
<para>
|
||||
If the <link linkend="ini.magic-quotes-sybase">
|
||||
|
||||
@@ -17,9 +17,6 @@
|
||||
<filename>libeay32.dll</filename> and
|
||||
<filename>ssleay32.dll</filename>
|
||||
</para>
|
||||
<simpara>
|
||||
Versions before PHP 4.3.0 additionally require <filename>libsasl.dll</filename>.
|
||||
</simpara>
|
||||
</note>
|
||||
<para>
|
||||
In order to use Oracle LDAP libraries, proper <link
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<entry><link linkend="ini.smtp-port">smtp_port</link></entry>
|
||||
<entry>"25"</entry>
|
||||
<entry>PHP_INI_ALL</entry>
|
||||
<entry>Available since PHP 4.3.0.</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.sendmail-from">sendmail_from</link></entry>
|
||||
@@ -132,8 +132,7 @@
|
||||
<para>
|
||||
Used under Windows only: Number of the port to connect to the server
|
||||
specified with the <literal>SMTP</literal> setting when sending mail
|
||||
with <function>mail</function>; defaults to 25. Only available since
|
||||
PHP 4.3.0.
|
||||
with <function>mail</function>; defaults to 25.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
@@ -16,7 +16,10 @@
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Configuration -->
|
||||
&reference.mailparse.ini;
|
||||
<section xml:id="mailparse.configuration">
|
||||
&reftitle.runtime;
|
||||
&no.config;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Resources -->
|
||||
|
||||
@@ -27,51 +27,6 @@
|
||||
<option role="configure">--with-libmbfl[=DIR]</option> can be specified to use
|
||||
the installed library.
|
||||
</para>
|
||||
<para>
|
||||
As of PHP 4.3.0, <literal>mbstring</literal> extension provides
|
||||
enhanced support for Simplified Chinese, Traditional Chinese,
|
||||
Korean, and Russian in addition to Japanese.
|
||||
</para>
|
||||
<para>
|
||||
For PHP 4.3.3 or before,
|
||||
To enable that feature, you will have to supply either one of the
|
||||
following options to the <literal>LANG</literal> parameter
|
||||
of <option role="configure">--enable-mbstring=LANG</option>;
|
||||
<option role="configure">--enable-mbstring=cn</option> for Simplified Chinese support,
|
||||
<option role="configure">--enable-mbstring=tw</option> for Traditional Chinese support,
|
||||
<option role="configure">--enable-mbstring=kr</option> for Korean support,
|
||||
<option role="configure">--enable-mbstring=ru</option> for Russian support, and
|
||||
<option role="configure">--enable-mbstring=ja</option> for Japanese support (default).
|
||||
To enable all supported encoding, use <option role="configure">--enable-mbstring=all</option>.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
As of PHP 4.3.4,
|
||||
all supported encoding by <productname>libmbfl</productname> is enabled
|
||||
with <option role="configure">--enable-mbstring</option>.
|
||||
</para>
|
||||
</note>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<option role="configure">--enable-mbstr-enc-trans</option> :
|
||||
Enable HTTP input character encoding conversion using
|
||||
<literal>mbstring</literal> conversion engine. If this
|
||||
feature is enabled, HTTP input character encoding may be
|
||||
converted to <literal>mbstring.internal_encoding</literal>
|
||||
automatically.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
As of PHP 4.3.0, the option
|
||||
<option role="configure">--enable-mbstr-enc-trans</option>
|
||||
was eliminated and replaced with the runtime setting
|
||||
<literal>mbstring.encoding_translation</literal>.
|
||||
HTTP input character encoding conversion is enabled
|
||||
when this is set to <literal>On</literal>
|
||||
(the default is <literal>Off</literal>).
|
||||
</para>
|
||||
</note>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
|
||||
@@ -120,7 +120,7 @@ ob_start("mb_output_handler");
|
||||
&reftitle.notes;
|
||||
<note>
|
||||
<para>
|
||||
If you want to output binary data, such as an image, using PHP 4.3.0 or later,
|
||||
If you want to output binary data, such as an image,
|
||||
a Content-Type: header must be set using <function>header</function>
|
||||
before any binary data is sent to the client (e.g. header("Content-Type: image/png")).
|
||||
If Content-Type: header is sent, output character encoding conversion will not be performed.
|
||||
@@ -128,10 +128,6 @@ ob_start("mb_output_handler");
|
||||
<para>
|
||||
Note that if 'Content-Type: text/*' is sent, the content body is regarded as text; conversion will take place.
|
||||
</para>
|
||||
<para>
|
||||
If you want to output binary data, such as an image, using PHP 4.2.x or earlier,
|
||||
you must set output encoding to "pass" using <function>mb_http_output</function>.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
|
||||
|
||||
@@ -11,16 +11,7 @@
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
In PHP 4.3.2 or earlier versions, there was a limitation in this
|
||||
functionality that <literal>mbstring</literal> does not perform
|
||||
character encoding conversion in POST data if the
|
||||
<literal>enctype</literal> attribute in the <literal>form</literal>
|
||||
element is set to <literal>multipart/form-data</literal>.
|
||||
So you have to convert the incoming data by yourself in this case
|
||||
if necessary.
|
||||
</para>
|
||||
<para>
|
||||
Beginning with PHP 4.3.3, if <literal>enctype</literal> for HTML form is
|
||||
If <literal>enctype</literal> for HTML form is
|
||||
set to <literal>multipart/form-data</literal> and
|
||||
<literal>mbstring.encoding_translation</literal> is set to On
|
||||
in &php.ini; the POST'ed variables and the names of uploaded files
|
||||
@@ -46,7 +37,7 @@
|
||||
<![CDATA[
|
||||
;; Disable HTTP Input conversion
|
||||
mbstring.http_input = pass
|
||||
;; Disable HTTP Input conversion (PHP 4.3.0 or higher)
|
||||
;; Disable HTTP Input conversion
|
||||
mbstring.encoding_translation = Off
|
||||
]]>
|
||||
</programlisting>
|
||||
|
||||
@@ -12,9 +12,6 @@
|
||||
to support on-the-fly data compression. Zlib is required to install
|
||||
this module.
|
||||
</para>
|
||||
<para>
|
||||
PHP 4.3.3 or newer is required to use the memcache extension.
|
||||
</para>
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
|
||||
@@ -14,13 +14,6 @@
|
||||
mime-type functions. The extension needs a copy of the simplified
|
||||
<filename>magic</filename> file that is distributed with the Apache httpd.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
The configure option has been changed from
|
||||
<option role="configure">--enable-mime-magic</option>
|
||||
to <option role="configure">--with-mime-magic</option> since PHP 4.3.2
|
||||
</para>
|
||||
</note>
|
||||
<note>
|
||||
<para>
|
||||
This extension is not capable of handling the fully decorated
|
||||
|
||||
@@ -33,9 +33,6 @@
|
||||
still being maintained; if there's a feature that you want to see, just
|
||||
let us know at <link xlink:href="&url.ming;">&url.ming;</link>.
|
||||
</para>
|
||||
<para>
|
||||
Ming was added in PHP 4.0.5.
|
||||
</para>
|
||||
&warn.experimental;
|
||||
|
||||
<note>
|
||||
|
||||
@@ -65,20 +65,7 @@ highlight_string('<?php phpinfo(); ?>');
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
The above example will output (in PHP 4):
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
<code><font color="#000000">
|
||||
<font color="#0000BB"><?php phpinfo</font><font color="#007700">(); </font><font color="#0000BB">?></font>
|
||||
</font>
|
||||
</code>
|
||||
]]>
|
||||
</screen>
|
||||
<para>
|
||||
The above example will output (in PHP 5):
|
||||
</para>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
<code><span style="color: #000000">
|
||||
|
||||
@@ -81,12 +81,6 @@
|
||||
|
||||
<section xml:id="mysql.installation.windows">
|
||||
<title>Installation on Windows Systems</title>
|
||||
<section xml:id="mysql.installation.windows.php4">
|
||||
<title>PHP 4</title>
|
||||
<para>
|
||||
The PHP MySQL extension is compiled into PHP.
|
||||
</para>
|
||||
</section>
|
||||
<section xml:id="mysql.installation.windows.php52">
|
||||
<title>PHP 5.0.x, 5.1.x, 5.2.x</title>
|
||||
<para>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
&reftitle.constants;
|
||||
&extension.constants;
|
||||
<para>
|
||||
Since PHP 4.3.0 it is possible to specify additional client flags for the
|
||||
It is possible to specify additional client flags for the
|
||||
<function>mysql_connect</function> and <function>mysql_pconnect</function>
|
||||
functions. The following constants are defined:
|
||||
<table xml:id="mysql.client-flags">
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
<!-- $Revision$ -->
|
||||
<section xml:id="net-gopher.install" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
&reftitle.install;
|
||||
<para>
|
||||
Prerequisite: PHP 4.3.0 or higher.
|
||||
</para>
|
||||
<para>
|
||||
&pecl.info;
|
||||
<link xlink:href="&url.pecl.package;net_gopher">&url.pecl.package;net_gopher</link>
|
||||
|
||||
@@ -75,7 +75,7 @@ if (!headers_sent()) {
|
||||
exit;
|
||||
}
|
||||
|
||||
// An example using the optional file and line parameters, as of PHP 4.3.0
|
||||
// An example using the optional file and line parameters
|
||||
// Note that $filename and $linenum are passed in for later use.
|
||||
// Do not assign them values beforehand.
|
||||
if (!headers_sent($filename, $linenum)) {
|
||||
|
||||
@@ -104,7 +104,7 @@ echo $out;
|
||||
<title>Displaying an IP address</title>
|
||||
<para>
|
||||
This second example shows how to print a converted address with the
|
||||
<function>printf</function> function in both PHP 4 and PHP 5:
|
||||
<function>printf</function> function:
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
@@ -141,7 +141,7 @@ if ($long == -1 || $long === FALSE) {
|
||||
<para>
|
||||
<function>ip2long</function> will return &false; for the IP
|
||||
<literal>255.255.255.255</literal> in PHP 5 <= 5.0.2. It was fixed in
|
||||
PHP 5.0.3 where it returns <literal>-1</literal> (same as PHP 4).
|
||||
PHP 5.0.3 where it returns <literal>-1</literal>.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
|
||||
@@ -137,7 +137,7 @@ Upload file: <input type="file" name="lob_upload" /><br />
|
||||
<![CDATA[
|
||||
<?php
|
||||
/* Calling PL/SQL stored procedures which contain clobs as input
|
||||
* parameters (PHP 4 >= 4.0.6).
|
||||
* parameters.
|
||||
* Example PL/SQL stored procedure signature is:
|
||||
*
|
||||
* PROCEDURE save_data
|
||||
|
||||
@@ -5,10 +5,7 @@
|
||||
<title>Key/Certificate parameters</title>
|
||||
<para>
|
||||
Quite a few of the openssl functions require a key or a certificate
|
||||
parameter. PHP 4.0.5 and earlier have to use a key or certificate
|
||||
<type>resource</type> returned by one of the
|
||||
<literal>openssl_get_xxx()</literal> functions.
|
||||
Later versions may use one of the following methods:
|
||||
parameter. Following methods may be used to get them:
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
|
||||
@@ -23,11 +23,8 @@
|
||||
Additionally, if you are planning to use the key generation and certificate
|
||||
signing functions, you will need to install a valid
|
||||
<filename>openssl.cnf</filename> file on your system.
|
||||
As of PHP 4.3.0, we include a sample configuration file
|
||||
in our win32 binary distributions.
|
||||
PHP 4.3.x and 4.4.x has the file in the
|
||||
<filename class="directory">openssl</filename> directory.
|
||||
PHP 5.x and 7.x has the file in the
|
||||
We include a sample configuration file
|
||||
in our win32 binary distributions, in the
|
||||
<filename class="directory">extras/openssl</filename> directory.
|
||||
</para>
|
||||
<para>
|
||||
|
||||
@@ -18,15 +18,6 @@
|
||||
only functions such as <function>echo</function> and data between
|
||||
blocks of PHP code.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
When upgrading from PHP 4.1.x (and 4.2.x) to 4.3.x due to a bug in
|
||||
earlier versions you must ensure that
|
||||
<literal>implicit_flush</literal> is <literal>OFF</literal> in
|
||||
your &php.ini;, otherwise any output with
|
||||
<function>ob_start</function> will not be hidden from output.
|
||||
</para>
|
||||
</note>
|
||||
</preface>
|
||||
|
||||
&reference.outcontrol.setup;
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
In PHP 4.0.4, <function>ob_gzhandler</function> was introduced to
|
||||
<function>ob_gzhandler</function> function exists to
|
||||
facilitate sending gz-encoded data to web browsers that support
|
||||
compressed web pages. <function>ob_gzhandler</function> determines
|
||||
what type of content encoding the browser will accept and will return
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
to 'On'. If you wish to limit the size of the buffer to a certain size -
|
||||
you can use a maximum number of bytes instead of 'On', as a value for
|
||||
this directive (e.g., output_buffering=4096).
|
||||
As of PHP 4.3.5, this directive is always Off in PHP-CLI.
|
||||
This directive is always Off in PHP-CLI.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
</para>
|
||||
<para>
|
||||
<parameter>replacement</parameter> may contain references of the form
|
||||
<literal>\\<replaceable>n</replaceable></literal> or (since PHP 4.0.4)
|
||||
<literal>\\<replaceable>n</replaceable></literal> or
|
||||
<literal>$<replaceable>n</replaceable></literal>, with the latter form
|
||||
being the preferred one. Every such reference will be replaced by the text
|
||||
captured by the <replaceable>n</replaceable>'th parenthesized pattern.
|
||||
|
||||
@@ -251,10 +251,7 @@ $html = preg_replace_callback(
|
||||
<simpara>
|
||||
This modifier turns on additional functionality of PCRE that
|
||||
is incompatible with Perl. Pattern and subject strings are
|
||||
treated as UTF-8. This modifier is available from PHP 4.1.0
|
||||
or greater on Unix and from PHP 4.2.3 on win32. UTF-8
|
||||
validity of the pattern and the subject is checked since PHP
|
||||
4.3.5. An invalid subject will cause the preg_* function to
|
||||
treated as UTF-8. An invalid subject will cause the preg_* function to
|
||||
match nothing; an invalid pattern will trigger an error of
|
||||
level E_WARNING. Five and six octet UTF-8 sequences are
|
||||
regarded as invalid since PHP 5.3.4 (resp. PCRE 7.3
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.pg-fetch-array">
|
||||
<refnamediv>
|
||||
<refname>pg_fetch_array</refname>
|
||||
@@ -118,9 +117,9 @@ $arr = pg_fetch_array($result, 0, PGSQL_NUM);
|
||||
echo $arr[0] . " <- Row 1 Author\n";
|
||||
echo $arr[1] . " <- Row 1 E-mail\n";
|
||||
|
||||
// As of PHP 4.1.0, the row parameter is optional; NULL can be passed instead,
|
||||
// to pass a result_type. Successive calls to pg_fetch_array will return the
|
||||
// next row.
|
||||
// The row parameter is optional; NULL can be passed instead,
|
||||
// to pass a result_type. Successive calls to pg_fetch_array
|
||||
// will return the next row.
|
||||
$arr = pg_fetch_array($result, NULL, PGSQL_ASSOC);
|
||||
echo $arr["author"] . " <- Row 2 Author\n";
|
||||
echo $arr["email"] . " <- Row 2 E-mail\n";
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<section xml:id="ps.requirements">
|
||||
&reftitle.required;
|
||||
<para>
|
||||
You need at least PHP 4.3.0 and pslib >= 0.1.12. The ps library (pslib)
|
||||
You need at least pslib >= 0.1.12. The ps library (pslib)
|
||||
is available at <link xlink:href="&url.pslib;">&url.pslib;</link>.
|
||||
</para>
|
||||
</section>
|
||||
|
||||
@@ -8,14 +8,11 @@
|
||||
&reftitle.required;
|
||||
<simpara>
|
||||
<emphasis>Modifying Constants, Functions, Classes, and Methods</emphasis>
|
||||
works with all releases of PHP 4 and PHP 5. No special requirements are
|
||||
as well as <emphasis>Custom Superglobals</emphasis>
|
||||
works with all releases of PHP 5. No special requirements are
|
||||
necessary.
|
||||
</simpara>
|
||||
|
||||
<simpara>
|
||||
<emphasis>Custom Superglobals</emphasis> are only available in PHP 4.2.0 or later.
|
||||
</simpara>
|
||||
|
||||
<simpara>
|
||||
<emphasis>Sandboxing</emphasis> requires PHP 5.1.0 or later, or
|
||||
PHP 5.0.0 with a special TSRM patch applied.
|
||||
|
||||
@@ -131,12 +131,8 @@ unset($_SESSION['count']);
|
||||
way. The second method embeds the session id directly into URLs.
|
||||
</para>
|
||||
<para>
|
||||
PHP is capable of transforming links transparently. Unless you are using
|
||||
PHP 4.2.0 or later, you need to enable it manually when building PHP.
|
||||
Under Unix, pass <link linkend="ini.session.use-trans-sid">
|
||||
--enable-trans-sid</link> to configure. If this build
|
||||
option and the run-time option
|
||||
<literal>session.use_trans_sid</literal> are enabled, relative
|
||||
PHP is capable of transforming links transparently. If the run-time
|
||||
option <literal>session.use_trans_sid</literal> is enabled, relative
|
||||
URIs will be changed to contain the session id automatically.
|
||||
<note>
|
||||
<para>
|
||||
|
||||
@@ -47,8 +47,7 @@
|
||||
&reftitle.notes;
|
||||
<note>
|
||||
<para>
|
||||
If <varname>$_SESSION</varname> (or <varname>$HTTP_SESSION_VARS</varname>
|
||||
for PHP 4.0.6 or less) is used, use <function>isset</function> to check a
|
||||
If <varname>$_SESSION</varname> is used, use <function>isset</function> to check a
|
||||
variable is registered in <varname>$_SESSION</varname>.
|
||||
</para>
|
||||
</note>
|
||||
|
||||
@@ -22,8 +22,7 @@
|
||||
</para>
|
||||
<para>
|
||||
You can also create a session variable by simply setting the
|
||||
appropriate member of the <varname>$_SESSION</varname>
|
||||
or <varname>$HTTP_SESSION_VARS</varname> (PHP < 4.1.0) array.
|
||||
appropriate member of the <varname>$_SESSION</varname> array.
|
||||
<informalexample>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
@@ -32,11 +31,8 @@
|
||||
$barney = "A big purple dinosaur.";
|
||||
session_register("barney");
|
||||
|
||||
// Use of $_SESSION is preferred, as of PHP 4.1.0
|
||||
// Use of $_SESSION is preferred
|
||||
$_SESSION["zim"] = "An invader from another planet.";
|
||||
|
||||
// The old way was to use $HTTP_SESSION_VARS
|
||||
$HTTP_SESSION_VARS["spongebob"] = "He's got square pants.";
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
@@ -127,8 +123,7 @@ $HTTP_SESSION_VARS["spongebob"] = "He's got square pants.";
|
||||
linkend="resource">resource types</link> appendix.
|
||||
</para>
|
||||
<para>
|
||||
If <varname>$_SESSION</varname> (or <varname>$HTTP_SESSION_VARS</varname>
|
||||
for PHP 4.0.6 or less) is used, assign values to
|
||||
If <varname>$_SESSION</varname> is used, assign values to
|
||||
<varname>$_SESSION</varname>. For example: $_SESSION['var'] = 'ABC';
|
||||
</para>
|
||||
</note>
|
||||
|
||||
@@ -46,8 +46,7 @@
|
||||
&reftitle.notes;
|
||||
<note>
|
||||
<para>
|
||||
If <varname>$_SESSION</varname> (or <varname>$HTTP_SESSION_VARS</varname>
|
||||
for PHP 4.0.6 or less) is used, use <function>unset</function> to
|
||||
If <varname>$_SESSION</varname> is used, use <function>unset</function> to
|
||||
unregister a session variable. Do not <function>unset</function>
|
||||
<varname>$_SESSION</varname> itself as this will disable the special
|
||||
function of the <varname>$_SESSION</varname> superglobal.
|
||||
|
||||
@@ -29,8 +29,7 @@
|
||||
&reftitle.notes;
|
||||
<note>
|
||||
<para>
|
||||
If <varname>$_SESSION</varname> (or <varname>$HTTP_SESSION_VARS</varname>
|
||||
for PHP 4.0.6 or less) is used, use <function>unset</function> to
|
||||
If <varname>$_SESSION</varname> is used, use <function>unset</function> to
|
||||
unregister a session variable, i.e.
|
||||
<literal>unset ($_SESSION['varname']);</literal>.
|
||||
</para>
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
<preface xml:id="intro.stream">
|
||||
&reftitle.intro;
|
||||
<simpara>
|
||||
Streams were introduced with PHP 4.3.0 as
|
||||
a way of generalizing file, network, data compression, and other
|
||||
Streams are
|
||||
the way of generalizing file, network, data compression, and other
|
||||
operations which share a common set of functions and uses. In
|
||||
its simplest definition, a <literal>stream</literal> is a
|
||||
<literal>resource</literal> object which exhibits streamable
|
||||
|
||||
@@ -189,7 +189,7 @@ setlocale(LC_ALL, 'nl_NL');
|
||||
/* Output: vrijdag 22 december 1978 */
|
||||
echo strftime("%A %e %B %Y", mktime(0, 0, 0, 12, 22, 1978));
|
||||
|
||||
/* try different possible locale names for german as of PHP 4.3.0 */
|
||||
/* try different possible locale names for german */
|
||||
$loc_de = setlocale(LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge');
|
||||
echo "Preferred locale for german on this system is '$loc_de'";
|
||||
?>
|
||||
@@ -209,7 +209,7 @@ setlocale(LC_ALL, 'nld_nld');
|
||||
/* Output: vrijdag 22 december 1978 */
|
||||
echo strftime("%A %d %B %Y", mktime(0, 0, 0, 12, 22, 1978));
|
||||
|
||||
/* try different possible locale names for german as of PHP 4.3.0 */
|
||||
/* try different possible locale names for german */
|
||||
$loc_de = setlocale(LC_ALL, 'de_DE@euro', 'de_DE', 'deu_deu');
|
||||
echo "Preferred locale for german on this system is '$loc_de'";
|
||||
?>
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
An optional <emphasis>sign specifier</emphasis> that forces a sign
|
||||
(- or +) to be used on a number. By default, only the - sign is used
|
||||
on a number if it's negative. This specifier forces positive numbers
|
||||
to have the + sign attached as well, and was added in PHP 4.3.0.
|
||||
to have the + sign attached as well.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
@@ -126,7 +126,7 @@
|
||||
<member>
|
||||
<literal>F</literal> - the argument is treated as a
|
||||
float, and presented as a floating-point number (non-locale aware).
|
||||
Available since PHP 4.3.10 and PHP 5.0.3.
|
||||
Available since PHP 5.0.3.
|
||||
</member>
|
||||
<member>
|
||||
<literal>g</literal> - shorter of <literal>%e</literal> and
|
||||
|
||||
@@ -88,34 +88,10 @@ while ($tok !== false) {
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
The behavior when an empty part was found changed with PHP 4.1.0. The old
|
||||
behavior returned an empty string, while the new, correct, behavior
|
||||
simply skips the part of the string:
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Old <function>strtok</function> behavior</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$first_token = strtok('/something', '/');
|
||||
$second_token = strtok('/');
|
||||
var_dump($first_token, $second_token);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
string(0) ""
|
||||
string(9) "something"
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
<example>
|
||||
<title>New <function>strtok</function> behavior</title>
|
||||
<title><function>strtok</function> behavior on empty part found</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
@@ -6,16 +6,6 @@
|
||||
This extension is bundled with PHP 5 and greater, and is installed
|
||||
using the <option role="configure">--with-tidy</option> configure option.
|
||||
</para>
|
||||
<para>
|
||||
PHP 4 users may use the (old) PECL extension here:
|
||||
<link xlink:href="&url.pecl.package;tidy">&url.pecl.package;tidy</link>.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
Tidy 1.0 is for PHP 4, whereas newer versions of the Tidy extension are
|
||||
for PHP 5 and greater.
|
||||
</para>
|
||||
</note>
|
||||
</section>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
@@ -81,16 +81,6 @@ bool(false)
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="notes">
|
||||
&reftitle.notes;
|
||||
<note>
|
||||
<para>
|
||||
This function was named <function>tidy_node::has_children</function> in
|
||||
PHP 4/Tidy 1.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
@@ -81,16 +81,6 @@ bool(true)
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="notes">
|
||||
&reftitle.notes;
|
||||
<note>
|
||||
<para>
|
||||
This function was named <function>tidy_node::has_siblings</function> in
|
||||
PHP 4/Tidy 1.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
@@ -96,16 +96,6 @@ function get_nodes($node) {
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="notes">
|
||||
&reftitle.notes;
|
||||
<note>
|
||||
<para>
|
||||
This function was named <function>tidy_node::is_asp</function> in
|
||||
PHP 4/Tidy 1.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
@@ -96,16 +96,6 @@ function get_nodes($node) {
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="notes">
|
||||
&reftitle.notes;
|
||||
<note>
|
||||
<para>
|
||||
This function was named <function>tidy_node::is_comment</function> in
|
||||
PHP 4/Tidy 1.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
@@ -168,16 +168,6 @@ Outside HTML
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="notes">
|
||||
&reftitle.notes;
|
||||
<note>
|
||||
<para>
|
||||
This function was named <function>tidy_node::is_html</function> in
|
||||
PHP 4/Tidy 1.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
@@ -96,15 +96,6 @@ function get_nodes($node) {
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="notes">
|
||||
&reftitle.notes;
|
||||
<note>
|
||||
<para>
|
||||
This function was named <function>tidy_node::is_jste</function> in
|
||||
PHP 4/Tidy 1.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
@@ -99,16 +99,6 @@ function get_nodes($node) {
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="notes">
|
||||
&reftitle.notes;
|
||||
<note>
|
||||
<para>
|
||||
This function was named <function>tidy_node::is_php</function> in
|
||||
PHP 4/Tidy 1.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
@@ -96,16 +96,6 @@ Outside HTML
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="notes">
|
||||
&reftitle.notes;
|
||||
<note>
|
||||
<para>
|
||||
This function was named <function>tidy_node::is_text</function> in
|
||||
PHP 4/Tidy 1.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
@@ -3,9 +3,7 @@
|
||||
<section xml:id="tokenizer.installation" xmlns="http://docbook.org/ns/docbook">
|
||||
&reftitle.install;
|
||||
<para>
|
||||
Beginning with PHP 4.3.0 these functions are enabled by default.
|
||||
For older versions you have to configure and compile PHP with
|
||||
<option role="configure">--enable-tokenizer</option>. You can disable
|
||||
These functions are enabled by default. You can disable
|
||||
tokenizer support with <option role="configure">--disable-tokenizer</option>.
|
||||
</para>
|
||||
&windows.builtin;
|
||||
|
||||
@@ -39,18 +39,17 @@
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"boolean" (or, since PHP 4.2.0, "bool")
|
||||
"boolean" or "bool"
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"integer" (or, since PHP 4.2.0, "int")
|
||||
"integer" or "int"
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"float" (only possible since PHP 4.2.0, for older versions use the
|
||||
deprecated variant "double")
|
||||
"float" or "double"
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
@@ -70,7 +69,7 @@
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"null" (since PHP 4.2.0)
|
||||
"null"
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
@@ -197,7 +197,6 @@ if (!odbc_execute($stmt, $sqldata) || !odbc_fetch_into($stmt, $tmp)) {
|
||||
<?php
|
||||
$serialized_object='O:1:"a":1:{s:5:"value";s:3:"100";}';
|
||||
|
||||
// unserialize_callback_func directive available as of PHP 4.2.0
|
||||
ini_set('unserialize_callback_func', 'mycallback'); // set your callback_function
|
||||
|
||||
function mycallback($classname)
|
||||
|
||||
@@ -28,12 +28,9 @@
|
||||
<term><parameter>encoding</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The optional <parameter>encoding</parameter> specifies the character
|
||||
encoding for the input/output in PHP 4. Starting from PHP 5, the input
|
||||
encoding is automatically detected, so that the
|
||||
The input encoding is automatically detected, so that the
|
||||
<parameter>encoding</parameter> parameter specifies only the output
|
||||
encoding. In PHP 4, the default output encoding is the same as the
|
||||
input charset. In PHP 5.0.0 and 5.0.1, the default output charset is
|
||||
encoding. In PHP 5.0.0 and 5.0.1, the default output charset is
|
||||
ISO-8859-1, while in PHP 5.0.2 and upper is UTF-8. The supported
|
||||
encodings are <literal>ISO-8859-1</literal>, <literal>UTF-8</literal> and
|
||||
<literal>US-ASCII</literal>.
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<section xml:id="yaz.configuration" xmlns="http://docbook.org/ns/docbook">
|
||||
&reftitle.runtime;
|
||||
&extension.runtime;
|
||||
<para>
|
||||
<table>
|
||||
<title>YAZ configuration options</title>
|
||||
<tgroup cols="4">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Name;</entry>
|
||||
<entry>&Default;</entry>
|
||||
<entry>&Changeable;</entry>
|
||||
<entry>&Changelog;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>yaz.max_links</entry>
|
||||
<entry>"100"</entry>
|
||||
<entry>PHP_INI_ALL</entry>
|
||||
<entry>Available since PHP 4.3.0. Removed in PHP 5.0.0.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>yaz.log_file</entry>
|
||||
<entry>NULL</entry>
|
||||
<entry>PHP_INI_ALL</entry>
|
||||
<entry>Available since PHP 4.3.0. Removed in PHP 5.0.0.</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
&ini.php.constants;
|
||||
</para>
|
||||
|
||||
</section>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
sgml-omittag:t
|
||||
sgml-shorttag:t
|
||||
sgml-minimize-attributes:nil
|
||||
sgml-always-quote-attributes:t
|
||||
sgml-indent-step:1
|
||||
sgml-indent-data:t
|
||||
indent-tabs-mode:nil
|
||||
sgml-parent-document:nil
|
||||
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
||||
sgml-exposed-tags:nil
|
||||
sgml-local-catalogs:nil
|
||||
sgml-local-ecat-files:nil
|
||||
End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
|
||||
|
||||
@@ -22,7 +22,10 @@
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Configuration -->
|
||||
&reference.yaz.ini;
|
||||
<section xml:id="yaz.configuration">
|
||||
&reftitle.runtime;
|
||||
&no.config;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Resources -->
|
||||
|
||||
Reference in New Issue
Block a user