Fixed PHP bug #51916 (Broken links in php.ini for section [mysqlnd])

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@299772 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel Egeberg 2010-05-26 08:21:00 +00:00
parent fab14e20d6
commit df3b602832

View file

@ -2,97 +2,117 @@
<!-- $Revision$ -->
<chapter xml:id="mysqlnd.config" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Configuration</title>
&reftitle.runtime;
&extension.runtime;
<para>
<emphasis role="bold">Configuration File
(php.ini) Settings</emphasis>
</para>
<para>
<table>
<title>MySQL Native Driver 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><link linkend="mysqlnd.collect_statistics">mysqlnd.collect_statistics</link></entry>
<entry>"1"</entry>
<entry>PHP_INI_SYSTEM</entry>
<entry>Available since PHP 5.3.0.</entry>
</row>
<row>
<entry><link linkend="mysqlnd.collect_memory_statistics">mysqlnd.collect_memory_statistics</link></entry>
<entry>"0"</entry>
<entry>PHP_INI_SYSTEM</entry>
<entry>Available since PHP 5.3.0.</entry>
</row>
</tbody>
</tgroup>
</table>
&ini.php.constants;
</para>
<para>
In PHP 5.3 the following <filename>php.ini</filename> settings are
available for the MySQL Native Driver:
</para>
&ini.descriptions.title;
<para>
<literal>mysqlnd.collect_statistics</literal>
</para>
<para>
<variablelist>
<varlistentry xml:id="mysqlnd.collect_statistics">
<term>
<parameter>mysqlnd.collect_statistics</parameter>
<type>boolean</type>
</term>
<listitem>
<para>
Enables the collection of various client statistics which can be
accessed through <function>mysqli_get_client_stats</function>,
<function>mysqli_get_connection_stats</function>,
<function>mysqli_get_cache_stats</function> and are shown in
<literal>mysqlnd</literal> section of the output of the
<function>phpinfo()</function> function as well.
</para>
<para>
type:boolean, default:"1", changeable:PHP_INI_SYSTEM
</para>
<para>
When enabled the following statistics will be collected:
</para>
<para>
Available since 5.3.0
</para>
<para>
bytes_sent, bytes_received, packets_sent, packets_received,
protocol_overhead_in, protocol_overhead_out,
bytes_received_ok_packet, bytes_received_eof_packet,
bytes_received_rset_header_packet,
bytes_received_rset_field_meta_packet,
bytes_received_rset_row_packet,
bytes_received_prepare_response_packet,
bytes_received_change_user_packet, packets_sent_command,
packets_received_ok, packets_received_eof,
packets_received_rset_header, packets_received_rset_field_meta,
packets_received_rset_row, packets_received_prepare_response,
packets_received_change_user, result_set_queries,
non_result_set_queries, no_index_used, bad_index_used, slow_queries,
buffered_sets, unbuffered_sets, ps_buffered_sets,
ps_unbuffered_sets, flushed_normal_sets, flushed_ps_sets,
ps_prepared_never_executed, ps_prepared_once_executed,
rows_fetched_from_server_normal, rows_fetched_from_server_ps,
rows_buffered_from_client_normal, rows_buffered_from_client_ps,
rows_fetched_from_client_normal_buffered,
rows_fetched_from_client_normal_unbuffered,
rows_fetched_from_client_ps_buffered,
rows_fetched_from_client_ps_unbuffered,
rows_fetched_from_client_ps_cursor, rows_skipped_normal,
rows_skipped_ps, copy_on_write_saved, copy_on_write_performed,
command_buffer_too_small, connect_success, connect_failure
</para>
</listitem>
</varlistentry>
<para>
Enables the collection of various client statistics which can be
accessed through <literal>mysqli_get_client_stats()</literal>,
<literal>mysqli_get_connection_stats()</literal>,
<literal>mysqli_get_cache_stats()</literal> and are shown in
<literal>mysqlnd</literal> section of the output of the
<literal>phpinfo()</literal> function as well.
</para>
<varlistentry xml:id="mysqlnd.collect_memory_statistics">
<term>
<parameter>mysqlnd.collect_memory_statistics</parameter>
<type>boolean</type>
</term>
<listitem>
<para>
Enable the collection of various memory statistics which can be
accessed through <literal>mysqli_get_client_stats()</literal>,
<literal>mysqli_get_connection_stats()</literal>,
<literal>mysqli_get_cache_stats()</literal> and are shown in
<literal>mysqlnd</literal> section of the output of the
<literal>phpinfo()</literal> function as well.
</para>
<para>
When enabled the following statistics will be collected:
</para>
<para>
When enabled the following statistics will be collected:
</para>
<para>
bytes_sent, bytes_received, packets_sent, packets_received,
protocol_overhead_in, protocol_overhead_out,
bytes_received_ok_packet, bytes_received_eof_packet,
bytes_received_rset_header_packet,
bytes_received_rset_field_meta_packet,
bytes_received_rset_row_packet,
bytes_received_prepare_response_packet,
bytes_received_change_user_packet, packets_sent_command,
packets_received_ok, packets_received_eof,
packets_received_rset_header, packets_received_rset_field_meta,
packets_received_rset_row, packets_received_prepare_response,
packets_received_change_user, result_set_queries,
non_result_set_queries, no_index_used, bad_index_used, slow_queries,
buffered_sets, unbuffered_sets, ps_buffered_sets,
ps_unbuffered_sets, flushed_normal_sets, flushed_ps_sets,
ps_prepared_never_executed, ps_prepared_once_executed,
rows_fetched_from_server_normal, rows_fetched_from_server_ps,
rows_buffered_from_client_normal, rows_buffered_from_client_ps,
rows_fetched_from_client_normal_buffered,
rows_fetched_from_client_normal_unbuffered,
rows_fetched_from_client_ps_buffered,
rows_fetched_from_client_ps_unbuffered,
rows_fetched_from_client_ps_cursor, rows_skipped_normal,
rows_skipped_ps, copy_on_write_saved, copy_on_write_performed,
command_buffer_too_small, connect_success, connect_failure
</para>
<para>
<literal>mysqlnd.collect_memory_statistics</literal>
</para>
<para>
type:boolean, default:"0", changeable:PHP_INI_SYSTEM
</para>
<para>
Available since 5.3.0
</para>
<para>
Enable the collection of various memory statistics which can be
accessed through <literal>mysqli_get_client_stats()</literal>,
<literal>mysqli_get_connection_stats()</literal>,
<literal>mysqli_get_cache_stats()</literal> and are shown in
<literal>mysqlnd</literal> section of the output of the
<literal>phpinfo()</literal> function as well.
</para>
<para>
When enabled the following statistics will be collected:
</para>
<para>TBD</para>
<para>TBD</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</chapter>
<!-- Keep this comment at the end of the file