mirror of
https://github.com/php/doc-en.git
synced 2026-03-23 23:32:18 +01:00
Remove PHP 5, 7 references (#565)
This commit is contained in:
@@ -9,9 +9,7 @@
|
||||
directories. In the <filename>include</filename> directory there should be a folder
|
||||
named <filename>curl</filename> which should contain the <filename>easy.h</filename> and
|
||||
<filename>curl.h</filename> files. There should be a file named
|
||||
<filename>libcurl.a</filename> located in the <filename>lib</filename> directory. Before
|
||||
PHP 5.5.0 it was possible to configure PHP to use cURL for URL streams
|
||||
<option role="configure">--with-curlwrappers</option>.
|
||||
<filename>libcurl.a</filename> located in the <filename>lib</filename> directory.
|
||||
</para>
|
||||
<note>
|
||||
<title>Note to Win32 Users</title>
|
||||
|
||||
@@ -3660,19 +3660,6 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.curl-wrappers-enabled">
|
||||
<term>
|
||||
<constant>CURL_WRAPPERS_ENABLED</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Defined if PHP was configured with
|
||||
<option role="configure">--with-curlwrappers</option>.
|
||||
Moved to PECL in PHP 5.5.0.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.curlpause-all">
|
||||
<term>
|
||||
<constant>CURLPAUSE_ALL</constant>
|
||||
@@ -3746,7 +3733,7 @@
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Available since PHP 7.0.0 and cURL 7.43.0.
|
||||
Available since cURL 7.43.0.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@@ -3757,7 +3744,7 @@
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Available since PHP 7.0.0 and cURL 7.43.0.
|
||||
Available since cURL 7.43.0.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@@ -3768,7 +3755,7 @@
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Available since PHP 7.0.0 and cURL 7.43.0.
|
||||
Available since cURL 7.43.0.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
@@ -90,31 +90,6 @@ curl_exec($ch);
|
||||
// close cURL resource, and free up system resources
|
||||
curl_close($ch);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
Prior to PHP 5.1.3 this function can be simulated with:
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Our own implementation of <function>curl_setopt_array</function></title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
if (!function_exists('curl_setopt_array')) {
|
||||
function curl_setopt_array(&$ch, $curl_options)
|
||||
{
|
||||
foreach ($curl_options as $option => $value) {
|
||||
if (!curl_setopt($ch, $option, $value)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
||||
@@ -262,7 +262,7 @@
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>A6</literal>(PHP >= 5.1.0)</entry>
|
||||
<entry><literal>A6</literal></entry>
|
||||
<entry>
|
||||
<literal>masklen</literal>: Length (in bits) to inherit from the target
|
||||
specified by <parameter>chain</parameter>.
|
||||
@@ -510,17 +510,6 @@ Additional = Array
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="notes">
|
||||
&reftitle.notes;
|
||||
<note>
|
||||
<para>
|
||||
For compatibility with versions before PHP 5.3.0 on some operating systems,
|
||||
try the <link xlink:href="&url.php.pear;">PEAR</link> class
|
||||
<link xlink:href="&url.pear.package;Net_DNS">Net_DNS</link>.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
|
||||
@@ -35,9 +35,6 @@
|
||||
<![CDATA[
|
||||
<?php
|
||||
echo gethostname(); // may output e.g,: sandie
|
||||
|
||||
// Or, an option that also works before PHP 5.3
|
||||
echo php_uname('n'); // may output e.g,: sandie
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
||||
@@ -105,11 +105,8 @@ if ($long == -1 || $long === FALSE) {
|
||||
</note>
|
||||
<note>
|
||||
<para>
|
||||
<function>ip2long</function> will return &false; for the IP
|
||||
<literal>255.255.255.255</literal> in PHP 5 <= 5.0.2, and <literal>-1</literal>
|
||||
on 64-bits systems in PHP 5 <=5.2.4. It was fixed in
|
||||
PHP 5.2.5 where it returns <literal>4294967295</literal>. 32-bit systems
|
||||
will return <literal>-1</literal> due to the integer value overflowing.
|
||||
<function>ip2long</function> will return <literal>-1</literal> for the IP
|
||||
<literal>255.255.255.255</literal> on 32-bit systems due to the integer value overflowing.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
|
||||
@@ -31,16 +31,10 @@
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
Since PHP 5.6.0, it accepts boolean values, converting them to PostgreSQL
|
||||
booleans. String representations of boolean values are also supported. &null; is
|
||||
Boolean values are accepted and converted to PostgreSQL booleans.
|
||||
String representations of boolean values are also supported. &null; is
|
||||
converted to PostgreSQL NULL.
|
||||
</para>
|
||||
<para>
|
||||
Prior to PHP 5.6.0, if there are boolean fields in <parameter>table_name</parameter>
|
||||
don't use the constant &true; in <parameter>assoc_array</parameter>. It will be
|
||||
converted to the string 'TRUE' which is not a valid entry for boolean fields
|
||||
in PostgreSQL. Use one of "t", "true", 1, "y", "yes" instead.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
An <type>array</type> containing the <literal>NOTIFY</literal> message name and backend PID.
|
||||
As of PHP 5.4.0 and if supported by the server, the array also contains the server version and the payload.
|
||||
If supported by the server, the array also contains the server version and the payload.
|
||||
Otherwise if no <literal>NOTIFY</literal> is waiting, then &false; is returned.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
If an <parameter>object_id</parameter> is given the function
|
||||
will try to create a large object with this id, else a free
|
||||
object id is assigned by the server. The parameter
|
||||
was added in PHP 5.3 and relies on functionality that first
|
||||
relies on functionality that first
|
||||
appeared in PostgreSQL 8.1.
|
||||
</para>
|
||||
</listitem>
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
If an <parameter>object_id</parameter> is given the function
|
||||
will try to create a large object with this id, else a free
|
||||
object id is assigned by the server. The parameter
|
||||
was added in PHP 5.3 and relies on functionality that first
|
||||
relies on functionality that first
|
||||
appeared in PostgreSQL 8.1.
|
||||
</para>
|
||||
</listitem>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<section xml:id="phar.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
&reftitle.install;
|
||||
<para>
|
||||
The Phar extension is bundled with PHP as of PHP version 5.3.0, and enabled by default.
|
||||
The Phar extension is bundled with PHP, and enabled by default.
|
||||
To disable Phar support, use <option role="configure">--disable-phar</option>.
|
||||
</para>
|
||||
<para>
|
||||
|
||||
@@ -7,12 +7,6 @@
|
||||
<!-- {{{ Requirements -->
|
||||
<section xml:id="phar.requirements">
|
||||
&reftitle.required;
|
||||
<para>
|
||||
Phar requires PHP 5.2.0 or newer. Additional features require the
|
||||
<link linkend="book.spl">SPL</link> extension in order to take advantage
|
||||
of iteration and array access to a Phar's file contents. The <literal>phar</literal>
|
||||
stream does not require any additional extensions to function.
|
||||
</para>
|
||||
<para>
|
||||
You may optionally wish to enable the <link linkend="book.zlib" >zlib</link>
|
||||
and <link linkend="book.bzip2" >bzip2</link> extensions to take
|
||||
@@ -21,12 +15,7 @@
|
||||
enabled.
|
||||
</para>
|
||||
<para>
|
||||
Note that a bug in the <link linkend="filters.compression">zlib.deflate</link> stream filter
|
||||
fixed in PHP version 5.2.6 and newer may cause truncation of gzip and bzip2-compressed
|
||||
phar archives.
|
||||
</para>
|
||||
<para>
|
||||
PHP 5.3 configured with <literal>--enable-zend-multibyte</literal> makes <link linkend="book.phar">phar</link> dependant on the ini option <literal>detect_unicode</literal>.
|
||||
If <link linkend="ini.zend.multibyte">zend.multibyte</link> is enabled, <link linkend="ini.zend.detect-unicode">zend.detect_unicode</link> must be enabled as well.
|
||||
</para>
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
<title><function>posix_access</function> constants</title>
|
||||
<note>
|
||||
<para>
|
||||
These constants are available starting with PHP 5.1.0. Please note that
|
||||
some of them may not be available on your system.
|
||||
Please note that some of these constants may not be available on every system.
|
||||
</para>
|
||||
</note>
|
||||
<variablelist>
|
||||
@@ -63,8 +62,7 @@
|
||||
<title><function>posix_mknod</function> constants</title>
|
||||
<note>
|
||||
<para>
|
||||
These constants are available starting with PHP 5.1.0. Please note that
|
||||
some of them may not be available on your system.
|
||||
Please note that some of them may not be available on your system.
|
||||
</para>
|
||||
</note>
|
||||
<variablelist>
|
||||
@@ -130,8 +128,7 @@
|
||||
<title><function>posix_setrlimit</function> constants</title>
|
||||
<note>
|
||||
<para>
|
||||
These constants are available starting with PHP 7.0.0. Please note that
|
||||
some of them may not be available on your system.
|
||||
Please note that some of them may not be available on your system.
|
||||
</para>
|
||||
</note>
|
||||
<note>
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
&reftitle.errors;
|
||||
<para>
|
||||
A <classname>ReflectionException</classname> if the class is an internal
|
||||
class that cannot be instantiated without invoking the constructor. In PHP
|
||||
5.6.0 onwards, this exception is limited only to internal classes that are
|
||||
class that cannot be instantiated without invoking the constructor.
|
||||
This exception is limited only to internal classes that are
|
||||
<link linkend="language.oop5.final">final</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
is using of librrd-dev package from your favourite linux distro.
|
||||
PECL/rrd is tested with librrd 1.4.3, older or newer versions might or might not
|
||||
work for you.
|
||||
PECL/rrd installation is tested with PHP 5.3.2 or newer.
|
||||
</para>
|
||||
<warning>
|
||||
<para>
|
||||
|
||||
@@ -10,9 +10,6 @@
|
||||
<para>
|
||||
The <acronym>Seaslog</acronym> is an effective,fast,stable log extension for PHP.
|
||||
</para>
|
||||
<para>
|
||||
SeasLog requires PHP 5.2.0 or greater. Earlier versions may not work.
|
||||
</para>
|
||||
<para>
|
||||
The log journal,which is usually the operate record of the system,
|
||||
software and the application record.
|
||||
|
||||
@@ -23,12 +23,12 @@
|
||||
<row>
|
||||
<entry>MSG_EAGAIN</entry>
|
||||
<entry><type>int</type></entry>
|
||||
<entry>As of 5.2.0</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>MSG_ENOMSG</entry>
|
||||
<entry><type>int</type></entry>
|
||||
<entry>As of 5.2.0</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>MSG_NOERROR</entry>
|
||||
|
||||
@@ -197,8 +197,8 @@ here</a>.
|
||||
<para>
|
||||
To implement database storage, or any other storage method, you
|
||||
will need to use <function>session_set_save_handler</function> to
|
||||
create a set of user-level storage functions. As of PHP 5.4.0 you may create session handlers
|
||||
using the <classname>SessionHandlerInterface</classname> or extend internal PHP handlers by inheriting
|
||||
create a set of user-level storage functions. A session handlers may be created
|
||||
using the <classname>SessionHandlerInterface</classname> or extending PHP's internal handlers by inheriting
|
||||
from <classname>SessionHandler</classname>.
|
||||
</para>
|
||||
<para>
|
||||
|
||||
@@ -279,7 +279,7 @@
|
||||
Custom session handler: see full code in <classname>SessionHandlerInterface</classname> synopsis.
|
||||
</title>
|
||||
<para>
|
||||
The following code is for PHP version 5.4.0 and above. We just show the invocation here, the full example can be
|
||||
We just show the invocation here, the full example can be
|
||||
seen in the <classname>SessionHandlerInterface</classname> synopsis linked above.
|
||||
</para>
|
||||
<para>
|
||||
@@ -299,95 +299,6 @@ $handler = new MySessionHandler();
|
||||
session_set_save_handler($handler, true);
|
||||
session_start();
|
||||
|
||||
// proceed to set and retrieve values by key from $_SESSION
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>Custom session save handler using objects</title>
|
||||
<para>
|
||||
The following code is for PHP versions less than 5.4.0.
|
||||
</para>
|
||||
<para>
|
||||
The following example provides file based session storage similar to the
|
||||
PHP sessions default save handler <parameter>files</parameter>. This
|
||||
example could easily be extended to cover database storage using your
|
||||
favorite PHP supported database engine.
|
||||
</para>
|
||||
<para>
|
||||
Note we additionally register the shutdown function <function>session_write_close</function>
|
||||
using <function>register_shutdown_function</function> under PHP less than 5.4.0.
|
||||
This is generally advised when registering objects as session save handlers under PHP less
|
||||
than 5.4.0.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
class FileSessionHandler
|
||||
{
|
||||
private $savePath;
|
||||
|
||||
function open($savePath, $sessionName)
|
||||
{
|
||||
$this->savePath = $savePath;
|
||||
if (!is_dir($this->savePath)) {
|
||||
mkdir($this->savePath, 0777);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function close()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
function read($id)
|
||||
{
|
||||
return (string)@file_get_contents("$this->savePath/sess_$id");
|
||||
}
|
||||
|
||||
function write($id, $data)
|
||||
{
|
||||
return file_put_contents("$this->savePath/sess_$id", $data) === false ? false : true;
|
||||
}
|
||||
|
||||
function destroy($id)
|
||||
{
|
||||
$file = "$this->savePath/sess_$id";
|
||||
if (file_exists($file)) {
|
||||
unlink($file);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function gc($maxlifetime)
|
||||
{
|
||||
foreach (glob("$this->savePath/sess_*") as $file) {
|
||||
if (filemtime($file) + $maxlifetime < time() && file_exists($file)) {
|
||||
unlink($file);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
$handler = new FileSessionHandler();
|
||||
session_set_save_handler(
|
||||
array($handler, 'open'),
|
||||
array($handler, 'close'),
|
||||
array($handler, 'read'),
|
||||
array($handler, 'write'),
|
||||
array($handler, 'destroy'),
|
||||
array($handler, 'gc')
|
||||
);
|
||||
|
||||
// the following prevents unexpected effects when using objects as save handlers
|
||||
register_shutdown_function('session_write_close');
|
||||
|
||||
session_start();
|
||||
// proceed to set and retrieve values by key from $_SESSION
|
||||
]]>
|
||||
</programlisting>
|
||||
@@ -399,23 +310,7 @@ session_start();
|
||||
&reftitle.notes;
|
||||
<warning>
|
||||
<para>
|
||||
When using objects as session save handlers, it is important to register the
|
||||
shutdown function with PHP to avoid unexpected side-effects from the way
|
||||
PHP internally destroys objects on shutdown and may prevent the
|
||||
<parameter>write</parameter> and <parameter>close</parameter> from being called.
|
||||
Typically you should register <parameter>'session_write_close'</parameter> using the
|
||||
<function>register_shutdown_function</function> function.
|
||||
</para>
|
||||
<para>
|
||||
As of PHP 5.4.0 you can use <function>session_register_shutdown</function> or
|
||||
simply use the 'register shutdown' flag when invoking
|
||||
<function>session_set_save_handler</function> using the OOP method and passing an
|
||||
instance that implements <classname>SessionHandlerInterface</classname>.
|
||||
</para>
|
||||
</warning>
|
||||
<warning>
|
||||
<para>
|
||||
As of PHP 5.0.5 the <parameter>write</parameter> and
|
||||
The <parameter>write</parameter> and
|
||||
<parameter>close</parameter> handlers are called after object
|
||||
destruction and therefore cannot use objects or throw exceptions.
|
||||
Exceptions are not able to be caught since will not be caught nor will
|
||||
@@ -450,7 +345,7 @@ session_start();
|
||||
configuration directive.
|
||||
</member>
|
||||
<member>The <function>register_shutdown_function</function></member>
|
||||
<member>The <function>session_register_shutdown</function> for PHP 5.4.0+</member>
|
||||
<member>The <function>session_register_shutdown</function></member>
|
||||
<member>
|
||||
Refer to <link xlink:href="&url.session-save-handler;">save_handler.inc</link>
|
||||
for a full procedural reference implementation
|
||||
|
||||
@@ -367,8 +367,7 @@
|
||||
<literal>php_binary</literal>) and WDDX are supported (name
|
||||
<literal>wddx</literal>). WDDX is only available, if PHP is
|
||||
compiled with <link linkend="ref.wddx">WDDX
|
||||
support</link>. <literal>php_serialize</literal> is available
|
||||
from PHP 5.5.4. <literal>php_serialize</literal> uses plain
|
||||
support</link>. <literal>php_serialize</literal> uses plain
|
||||
serialize/unserialize function internally and does not have
|
||||
limitations that <literal>php</literal>
|
||||
and <literal>php_binary</literal> have. Older serialize handlers
|
||||
@@ -481,9 +480,9 @@
|
||||
Removed in PHP 7.1.0.
|
||||
</simpara>
|
||||
<simpara>
|
||||
As of PHP 5.4.0 <literal>session.entropy_file</literal> defaults
|
||||
<literal>session.entropy_file</literal> defaults
|
||||
to <literal>/dev/urandom</literal> or <literal>/dev/arandom</literal>
|
||||
if it is available. In PHP 5.3.0 this directive is left empty by default.
|
||||
if it is available.
|
||||
</simpara>
|
||||
</note>
|
||||
</listitem>
|
||||
@@ -873,7 +872,7 @@
|
||||
</para>
|
||||
<note>
|
||||
<simpara>
|
||||
This setting was introduced in PHP 5. Removed in PHP 7.1.0.
|
||||
Removed in PHP 7.1.0.
|
||||
</simpara>
|
||||
</note>
|
||||
</listitem>
|
||||
|
||||
@@ -72,9 +72,8 @@
|
||||
</para>
|
||||
|
||||
<para>
|
||||
As of PHP 5.5.2,
|
||||
<link linkend="ini.session.use-strict-mode">session.use_strict_mode</link>
|
||||
is available. When it is enabled, and the session save handler supports it,
|
||||
When <link linkend="ini.session.use-strict-mode">session.use_strict_mode</link> is enabled,
|
||||
and the session save handler supports it,
|
||||
an uninitialized session ID is rejected and a new one is created.
|
||||
This prevents an attack that forces users to use a known session ID.
|
||||
An attacker may paste links or send emails that contains the session ID.
|
||||
@@ -190,8 +189,8 @@
|
||||
Session IDs <emphasis>must</emphasis> be regenerated when user privileges
|
||||
are elevated, such as after authenticating.
|
||||
<function>session_regenerate_id</function> must be called prior to
|
||||
setting the authentication information to $_SESSION. (As of PHP 7.0.0,
|
||||
<function>session_regenerate_id</function> saves the current session data
|
||||
setting the authentication information to $_SESSION.
|
||||
(<function>session_regenerate_id</function> saves the current session data
|
||||
automatically in order to save timestamp/etc. to the current session.)
|
||||
Ensure only the new session contains the authenticated flag.
|
||||
</para>
|
||||
|
||||
@@ -4,12 +4,6 @@
|
||||
<chapter xml:id="session.upload-progress" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Session Upload Progress</title>
|
||||
|
||||
<note>
|
||||
<simpara>
|
||||
This feature is available as of PHP 5.4.0.
|
||||
</simpara>
|
||||
</note>
|
||||
|
||||
<para>
|
||||
When the
|
||||
<link linkend="ini.session.upload-progress.enabled">session.upload_progress.enabled</link>
|
||||
|
||||
@@ -140,18 +140,6 @@ int(1)
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="notes">
|
||||
&reftitle.notes;
|
||||
|
||||
<simpara>
|
||||
<methodname>SimpleXMLElement::children</methodname> returns a node
|
||||
object no matter if the current node has children or not. Use
|
||||
<function>count</function> on the return value to see if there are any
|
||||
children. As of PHP 5.3.0, <methodname>SimpleXMLElement::count</methodname>
|
||||
may be used instead.
|
||||
</simpara>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
|
||||
@@ -32,22 +32,13 @@
|
||||
<tbody>
|
||||
<row><entry><constant>SNMP_OID_OUTPUT_FULL</constant></entry><entry>.iso.org.dod.internet.mgmt.mib-2.system.sysUpTime.sysUpTimeInstance</entry></row>
|
||||
<row><entry><constant>SNMP_OID_OUTPUT_NUMERIC</constant></entry><entry>.1.3.6.1.2.1.1.3.0</entry> </row>
|
||||
<row><entry><constant>SNMP_OID_OUTPUT_MODULE</constant></entry><entry>DISMAN-EVENT-MIB::sysUpTimeInstance</entry></row>
|
||||
<row><entry><constant>SNMP_OID_OUTPUT_SUFFIX</constant></entry><entry>sysUpTimeInstance</entry></row>
|
||||
<row><entry><constant>SNMP_OID_OUTPUT_UCD</constant></entry><entry>system.sysUpTime.sysUpTimeInstance</entry></row>
|
||||
<row><entry><constant>SNMP_OID_OUTPUT_NONE</constant></entry><entry>Undefined</entry></row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
<para>Beginning from PHP 5.4.0 four additional constants available:
|
||||
<table>
|
||||
<title/>
|
||||
<tgroup cols="2">
|
||||
<tbody>
|
||||
<row><entry><constant>SNMP_OID_OUTPUT_MODULE</constant></entry><entry>DISMAN-EVENT-MIB::sysUpTimeInstance</entry></row>
|
||||
<row><entry><constant>SNMP_OID_OUTPUT_SUFFIX</constant></entry><entry>sysUpTimeInstance</entry></row>
|
||||
<row><entry><constant>SNMP_OID_OUTPUT_UCD</constant></entry><entry>system.sysUpTime.sysUpTimeInstance</entry></row>
|
||||
<row><entry><constant>SNMP_OID_OUTPUT_NONE</constant></entry><entry>Undefined</entry></row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
</table>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
@@ -72,7 +63,7 @@
|
||||
|
||||
snmp_read_mib("/usr/share/mibs/netsnmp/NET-SNMP-TC");
|
||||
|
||||
// default or SNMP_OID_OUTPUT_MODULE in PHP >= 5.3.6
|
||||
// default or SNMP_OID_OUTPUT_MODULE
|
||||
print_r( snmprealwalk('localhost', 'public', 'RFC1213-MIB::sysObjectID') );
|
||||
|
||||
snmp_set_oid_output_format(SNMP_OID_OUTPUT_NUMERIC);
|
||||
|
||||
@@ -82,7 +82,6 @@
|
||||
// [value] => lo
|
||||
// )
|
||||
|
||||
// PHP 5.4+ examples
|
||||
snmp_set_valueretrieval(SNMP_VALUE_OBJECT | SNMP_VALUE_PLAIN);
|
||||
$ret = snmpget('localhost', 'public', 'IF-MIB::ifName.1');
|
||||
// stdClass Object
|
||||
|
||||
@@ -187,7 +187,7 @@
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
This constant is only available in PHP 5.4.10 or later on platforms that
|
||||
This constant is only available on platforms that
|
||||
support the <constant>SO_REUSEPORT</constant> socket option: this
|
||||
includes macOS and FreeBSD, but does not include Linux or Windows.
|
||||
</simpara>
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
<section xml:id="solr.requirements">
|
||||
&reftitle.required;
|
||||
<!-- Use &no.requirement; if there no requirement -->
|
||||
<para>PHP version 5.2.11 or later is required.</para>
|
||||
<para>The libxml and curl extensions must also be enabled for the Apache Solr extension to be available.</para>
|
||||
<para>libxml2 2.6.31 or later is required.</para>
|
||||
<para>libcurl 7.18.0 or later is also required.</para>
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
Whether to use the iterator element keys as index.
|
||||
</para>
|
||||
<para>
|
||||
In PHP 5.5 and later, if a key is an <type>array</type> or
|
||||
If a key is an <type>array</type> or
|
||||
<type>object</type>, a warning will be generated. &null; keys will be
|
||||
converted to an empty string, <type>float</type> keys will be
|
||||
truncated to their <type>int</type> counterpart,
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
<section xml:id="sqlite3.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
&reftitle.install;
|
||||
<para>
|
||||
The SQLite3 extension is enabled by default as of PHP 5.3.0. It's
|
||||
The SQLite3 extension is enabled by default. It's
|
||||
possible to disable it by using <literal>--without-sqlite3</literal>
|
||||
at compile time.
|
||||
</para>
|
||||
<para>
|
||||
Windows users must enable <filename>php_sqlite3.dll</filename>
|
||||
in order to use this extension. This <acronym>DLL</acronym> is
|
||||
included with Windows distributions of PHP as of PHP 5.3.0.
|
||||
included with Windows distributions of PHP.
|
||||
</para>
|
||||
<note>
|
||||
<title>Additional setup on Windows as of PHP 7.4.0</title>
|
||||
@@ -19,12 +19,6 @@
|
||||
&ext.windows.path.dll; <filename>libsqlite3.dll</filename>.
|
||||
</para>
|
||||
</note>
|
||||
<note>
|
||||
<para>
|
||||
This extension was briefly a <acronym>PECL</acronym> extension
|
||||
but that version is only recommended for experimental use.
|
||||
</para>
|
||||
</note>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<entry><link linkend="ini.sqlite3.extension-dir">sqlite3.extension_dir</link></entry>
|
||||
<entry>""</entry>
|
||||
<entry>PHP_INI_SYSTEM</entry>
|
||||
<entry>Available as of PHP 5.3.11.</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.sqlite3.defensive">sqlite3.defensive</link></entry>
|
||||
|
||||
@@ -5,25 +5,18 @@
|
||||
<para>
|
||||
The SQLSRV extension is enabled by adding appropriate DLL file to your PHP
|
||||
extension directory and the corresponding entry to the &php.ini; file. The SQLSRV
|
||||
download comes 8 driver files, four of which are for PDO support. If you are
|
||||
running non-thread-safe PHP (PHP 5.3), use the php_sqlsrv_53_nts.dll file.
|
||||
(You should use a non-thread-safe version if you are using IIS as your web
|
||||
server). If you are running thread-safe PHP, use the php_sqlsrv_53_ts.dll file.
|
||||
Similarly for PHP 5.4, use the php_sqlsrv_54_nts.dll or php_sqlsrv_54_ts.dll
|
||||
depending on whether your PHP installation is non-thread-safe or thread-safe.
|
||||
download comes with 8 driver files, four of which are for PDO support.
|
||||
</para>
|
||||
<para>
|
||||
The most recent version of the driver is available for download here:
|
||||
<link xlink:href="&url.sqlsrv;">SQLSRV 4.0 download</link>. If you need support
|
||||
for PHP 5.2 and/or PHP compiled with VC6, use the 2.0 release of the driver:
|
||||
<link xlink:href="&url.sqlsrv.v2driverdownload;">SQLSRV 2.0 download</link>.
|
||||
<link xlink:href="&url.sqlsrv;">SQLSRV download</link>.
|
||||
</para>
|
||||
<para>
|
||||
For more information about SQLSRV requirements, see
|
||||
<link xlink:href="&url.sqlsrv.system.requirements;">SQLSRV System Requirements</link>.
|
||||
</para>
|
||||
<para>
|
||||
The SQLSRV extension is only compatible with PHP 5 running on Windows. Since version 4.0 the SQLSRV extension is compatilbe only with PHP 7.0 running on Linux or Windows.
|
||||
Since version 4.0 the SQLSRV extension is compatible only with PHP 7.0 running on Linux or Windows.
|
||||
</para>
|
||||
</section>
|
||||
|
||||
@@ -46,4 +39,4 @@ End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
||||
|
||||
@@ -27,18 +27,11 @@
|
||||
</simplelist>
|
||||
</para>
|
||||
<para>
|
||||
The SQLSRV download comes 8 driver files, four of which are for PDO support.
|
||||
If you are running non-thread-safe PHP (PHP 5.3), use the php_sqlsrv_53_nts.dll
|
||||
file. (You should use a non-thread-safe version if you are using IIS as your
|
||||
web server). If you are running thread-safe PHP, use the php_sqlsrv_53_ts.dll
|
||||
file. Similarly for PHP 5.4, use the php_sqlsrv_54_nts.dll or php_sqlsrv_54_ts.dll
|
||||
depending on whether your PHP installation is non-thread-safe or thread-safe.
|
||||
The SQLSRV download comes 8 driver files, four of which are for PDO support.
|
||||
</para>
|
||||
<para>
|
||||
The most recent version of the driver is available for download here:
|
||||
<link xlink:href="&url.sqlsrv;">SQLSRV 4.0 download</link>. If you need support
|
||||
for PHP 5.2 and/or PHP compiled with VC6, use the 2.0 release of the driver:
|
||||
<link xlink:href="&url.sqlsrv.v2driverdownload;">SQLSRV 2.0 download</link>.
|
||||
<link xlink:href="&url.sqlsrv;">SQLSRV download</link>.
|
||||
</para>
|
||||
<para>
|
||||
For more information about SQLSRV requirements, see
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
<section xml:id="stomp.requirements">
|
||||
&reftitle.required;
|
||||
<para>PECL/stomp requires PHP 5.2.2 or newer.</para>
|
||||
<para>The <link xlink:href="&url.openssl;">OpenSSL</link> package >= 0.9.6 and the <link linkend="book.openssl">openssl</link> extension may also be required to use stomp over SSL.</para>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -33,12 +33,6 @@
|
||||
array of associative arrays in the format
|
||||
<literal>$arr['wrapper']['option'] = $value</literal>.
|
||||
</simpara>
|
||||
<note>
|
||||
<para>
|
||||
As of PHP 5.3.0, the <function>stream_context_set_default</function> function
|
||||
can be used to set the default context.
|
||||
</para>
|
||||
</note>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
@@ -104,6 +98,7 @@ readfile('http://www.example.com', false, $alternate);
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>stream_context_create</function></member>
|
||||
<member><function>stream_context_set_default</function></member>
|
||||
<member>Listing of supported wrappers with context options (<xref linkend="wrappers"/>).</member>
|
||||
</simplelist>
|
||||
</para>
|
||||
|
||||
Reference in New Issue
Block a user