mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Remove obsolete PHP 5 specific mysqli docs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351218 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
91de67290f
commit
4ec4293189
5 changed files with 0 additions and 401 deletions
|
@ -1,89 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id="function.mysqli-get-cache-stats" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<refnamediv>
|
||||
<refname>mysqli_get_cache_stats</refname>
|
||||
<refpurpose>Returns client Zval cache statistics</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsynopsisdiv>
|
||||
<warning xmlns="http://docbook.org/ns/docbook">
|
||||
<simpara>This function has been <emphasis>REMOVED</emphasis> as of PHP 5.4.0.</simpara>
|
||||
</warning>
|
||||
</refsynopsisdiv>
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>mysqli_get_cache_stats</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns an empty array.
|
||||
&mysqli.available.mysqlnd;
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns an empty array on success, &false; otherwise.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>5.4.0</entry>
|
||||
<entry>
|
||||
The <function>mysqli_get_cache_stats</function> was removed.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>5.3.0</entry>
|
||||
<entry>
|
||||
The <function>mysqli_get_cache_stats</function> was added as stub.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- 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
|
||||
-->
|
|
@ -1,80 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id="mysqli.set-local-infile-default" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>mysqli::set_local_infile_default</refname>
|
||||
<refname>mysqli_set_local_infile_default</refname>
|
||||
<refpurpose>Unsets user defined handler for load local infile command</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<para>&style.oop;</para>
|
||||
<methodsynopsis role="oop">
|
||||
<modifier>public</modifier> <type>void</type><methodname>mysqli::set_local_infile_default</methodname>
|
||||
<void />
|
||||
</methodsynopsis>
|
||||
<para>&style.procedural;</para>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>mysqli_set_local_infile_default</methodname>
|
||||
<methodparam><type>mysqli</type><parameter>link</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
|
||||
<para>
|
||||
Deactivates a <literal>LOAD DATA INFILE LOCAL</literal> handler previously
|
||||
set with <function>mysqli_set_local_infile_handler</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
&mysqli.link.description;
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.void;
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>See <function>mysqli_set_local_infile_handler</function> examples</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>mysqli_set_local_infile_handler</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- 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
|
||||
-->
|
|
@ -1,205 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id="mysqli.set-local-infile-handler" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>mysqli::set_local_infile_handler</refname>
|
||||
<refname>mysqli_set_local_infile_handler</refname>
|
||||
<refpurpose>Set callback function for LOAD DATA LOCAL INFILE command</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<para>&style.oop;</para>
|
||||
<methodsynopsis role="oop">
|
||||
<modifier>public</modifier> <type>bool</type><methodname>mysqli::set_local_infile_handler</methodname>
|
||||
<methodparam><type>callable</type><parameter>read_func</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>&style.procedural;</para>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>mysqli_set_local_infile_handler</methodname>
|
||||
<methodparam><type>mysqli</type><parameter>link</parameter></methodparam>
|
||||
<methodparam><type>callable</type><parameter>read_func</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
|
||||
<para>Set callback function for LOAD DATA LOCAL INFILE command</para>
|
||||
|
||||
<para>
|
||||
The callbacks task is to read input from the file specified in the
|
||||
<literal>LOAD DATA LOCAL INFILE</literal> and to reformat it into
|
||||
the format understood by <literal>LOAD DATA INFILE</literal>.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The returned data needs to match the format specified in the
|
||||
<literal>LOAD DATA</literal>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
&mysqli.link.description;
|
||||
<varlistentry>
|
||||
<term><parameter>read_func</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
A callback function or object method taking the following parameters:
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>stream</parameter></term>
|
||||
<listitem><para>A PHP stream associated with the SQL commands INFILE</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>&buffer</parameter></term>
|
||||
<listitem><para>A string buffer to store the rewritten input into</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>buflen</parameter></term>
|
||||
<listitem><para>The maximum number of characters to be stored in the buffer</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>&errormsg</parameter></term>
|
||||
<listitem><para>If an error occurs you can store an error message in here</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<para>
|
||||
The callback function should return the number of characters stored
|
||||
in the <parameter>buffer</parameter> or a negative value if an error
|
||||
occurred.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<example>
|
||||
<title><methodname>mysqli::set_local_infile_handler</methodname> example</title>
|
||||
<para>&style.oop;</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$db = mysqli_init();
|
||||
$db->real_connect("localhost","root","","test");
|
||||
|
||||
function callme($stream, &$buffer, $buflen, &$errmsg)
|
||||
{
|
||||
$buffer = fgets($stream);
|
||||
|
||||
echo $buffer;
|
||||
|
||||
// convert to upper case and replace "," delimiter with [TAB]
|
||||
$buffer = strtoupper(str_replace(",", "\t", $buffer));
|
||||
|
||||
return strlen($buffer);
|
||||
}
|
||||
|
||||
|
||||
echo "Input:\n";
|
||||
|
||||
$db->set_local_infile_handler("callme");
|
||||
$db->query("LOAD DATA LOCAL INFILE 'input.txt' INTO TABLE t1");
|
||||
$db->set_local_infile_default();
|
||||
|
||||
$res = $db->query("SELECT * FROM t1");
|
||||
|
||||
echo "\nResult:\n";
|
||||
while ($row = $res->fetch_assoc()) {
|
||||
echo join(",", $row)."\n";
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>&style.procedural;</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$db = mysqli_init();
|
||||
mysqli_real_connect($db, "localhost","root","","test");
|
||||
|
||||
function callme($stream, &$buffer, $buflen, &$errmsg)
|
||||
{
|
||||
$buffer = fgets($stream);
|
||||
|
||||
echo $buffer;
|
||||
|
||||
// convert to upper case and replace "," delimiter with [TAB]
|
||||
$buffer = strtoupper(str_replace(",", "\t", $buffer));
|
||||
|
||||
return strlen($buffer);
|
||||
}
|
||||
|
||||
|
||||
echo "Input:\n";
|
||||
|
||||
mysqli_set_local_infile_handler($db, "callme");
|
||||
mysqli_query($db, "LOAD DATA LOCAL INFILE 'input.txt' INTO TABLE t1");
|
||||
mysqli_set_local_infile_default($db);
|
||||
|
||||
$res = mysqli_query($db, "SELECT * FROM t1");
|
||||
|
||||
|
||||
echo "\nResult:\n";
|
||||
while ($row = mysqli_fetch_assoc($res)) {
|
||||
echo join(",", $row)."\n";
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&examples.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Input:
|
||||
23,foo
|
||||
42,bar
|
||||
|
||||
Output:
|
||||
23,FOO
|
||||
42,BAR
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>mysqli_set_local_infile_default</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- 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
|
||||
-->
|
|
@ -194,12 +194,6 @@
|
|||
<entry>N/A</entry>
|
||||
<entry>Returns client per-process statistics. &mysqli.available.mysqlnd;</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><methodname>mysqli::get_cache_stats</methodname></entry>
|
||||
<entry><function>mysqli_get_cache_stats</function></entry>
|
||||
<entry>N/A</entry>
|
||||
<entry>Returns client Zval cache statistics. &mysqli.available.mysqlnd;</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><methodname>mysqli::get_server_info</methodname></entry>
|
||||
<entry><function>mysqli_get_server_info</function></entry>
|
||||
|
@ -313,18 +307,6 @@
|
|||
<entry>N/A</entry>
|
||||
<entry>Sets the default client character set</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><methodname>mysqli::set_local_infile_default</methodname></entry>
|
||||
<entry><function>mysqli_set_local_infile_default</function></entry>
|
||||
<entry>N/A</entry>
|
||||
<entry>Unsets user defined handler for load local infile command</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><methodname>mysqli::set_local_infile_handler</methodname></entry>
|
||||
<entry><function>mysqli_set_local_infile_handler</function></entry>
|
||||
<entry>N/A</entry>
|
||||
<entry>Set callback function for LOAD DATA LOCAL INFILE command</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><methodname>mysqli::ssl_set</methodname></entry>
|
||||
<entry><function>mysqli_ssl_set</function></entry>
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
<function name="mysqli_driver_embedded_server_end" from="PHP 5, PHP 7"/>
|
||||
<function name="mysqli_driver_embedded_server_start" from="PHP 5, PHP 7"/>
|
||||
<function name="mysqli_dump_debug_info" from="PHP 5, PHP 7"/>
|
||||
<function name="mysqli_embedded_connect" from="PHP 5 < 5.1.0"/>
|
||||
<function name="mysqli_embedded_server_end" from="PHP 5 >= 5.1.0, PHP 7 < 7.4.0"/>
|
||||
<function name="mysqli_embedded_server_start" from="PHP 5 >= 5.1.0, PHP 7 < 7.4.0"/>
|
||||
<function name="mysqli_errno" from="PHP 5, PHP 7"/>
|
||||
|
@ -40,7 +39,6 @@
|
|||
<function name="mysqli_field_seek" from="PHP 5, PHP 7"/>
|
||||
<function name="mysqli_field_tell" from="PHP 5, PHP 7"/>
|
||||
<function name="mysqli_free_result" from="PHP 5, PHP 7"/>
|
||||
<function name="mysqli_get_cache_stats" from="PHP 5 >= 5.3.0 and < 5.4.0"/>
|
||||
<function name="mysqli_get_charset" from="PHP 5 >= 5.1.0, PHP 7"/>
|
||||
<function name="mysqli_get_client_info" from="PHP 5, PHP 7"/>
|
||||
<function name="mysqli_get_client_stats" from="PHP 5 >= 5.3.0, PHP 7"/>
|
||||
|
@ -75,7 +73,6 @@
|
|||
<function name="mysqli_refresh" from="PHP 5 >= 5.3.0, PHP 7"/>
|
||||
<function name="mysqli_release_savepoint" from="PHP 5 >= 5.5.0, PHP 7"/>
|
||||
<function name="mysqli_report" from="PHP 5, PHP 7"/>
|
||||
<function name="mysqli_resource" from="PHP 5 < 5.1.4"/>
|
||||
<function name="mysqli_result_current_field" from="PHP 5, PHP 7"/>
|
||||
<function name="mysqli_result_data_seek" from="PHP 5, PHP 7"/>
|
||||
<function name="mysqli_result_fetch_all" from="PHP 5 >= 5.3.0, PHP 7"/>
|
||||
|
@ -95,11 +92,7 @@
|
|||
<function name="mysqli_row_seek" from="PHP 5, PHP 7"/>
|
||||
<function name="mysqli_savepoint" from="PHP 5 >= 5.5.0, PHP 7"/>
|
||||
<function name="mysqli_select_db" from="PHP 5, PHP 7"/>
|
||||
<function name="mysqli_server_end" from="PHP 5 < 5.1.0"/>
|
||||
<function name="mysqli_server_init" from="PHP 5 < 5.1.0"/>
|
||||
<function name="mysqli_set_charset" from="PHP 5 >= 5.0.5, PHP 7"/>
|
||||
<function name="mysqli_set_local_infile_default" from="PHP 5 < 5.4.0"/>
|
||||
<function name="mysqli_set_local_infile_handler" from="PHP 5, PHP 7"/>
|
||||
<function name="mysqli_set_opt" from="PHP 5, PHP 7"/>
|
||||
<function name="mysqli_sqlstate" from="PHP 5, PHP 7"/>
|
||||
<function name="mysqli_ssl_set" from="PHP 5, PHP 7"/>
|
||||
|
@ -176,8 +169,6 @@
|
|||
<function name="mysqli::savepoint" from="PHP 5 >= 5.5.0, PHP 7"/>
|
||||
<function name="mysqli::select_db" from="PHP 5, PHP 7"/>
|
||||
<function name="mysqli::set_charset" from="PHP 5 >= 5.0.5, PHP 7"/>
|
||||
<function name="mysqli::set_local_infile_default" from="PHP 5 < 5.4.0"/>
|
||||
<function name="mysqli::set_local_infile_handler" from="PHP 5, PHP 7"/>
|
||||
<function name="mysqli::set_opt" from="PHP 5, PHP 7"/>
|
||||
<function name="mysqli::ssl_set" from="PHP 5, PHP 7"/>
|
||||
<function name="mysqli::stat" from="PHP 5, PHP 7"/>
|
||||
|
|
Loading…
Reference in a new issue