<?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> <appendix xml:id="mysqlnd-mux.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.constants; &extension.constants; <para> <emphasis role="bold">Other</emphasis> </para> <para> The plugins version number can be obtained using <constant>MYSQLND_MUX_VERSION</constant> or <constant>MYSQLND_MUX_VERSION_ID</constant>. <constant>MYSQLND_MUX_VERSION</constant> is the string representation of the numerical version number <constant>MYSQLND_MUX_VERSION_ID</constant>, which is an integer such as 10000. Developers can calculate the version number as follows. </para> <para> <informaltable> <tgroup cols="2"> <thead> <row> <entry>Version (part)</entry> <entry>Example</entry> </row> </thead> <tbody> <row> <entry>Major*10000</entry> <entry>1*10000 = 10000</entry> </row> <row> <entry>Minor*100</entry> <entry>0*100 = 0</entry> </row> <row> <entry>Patch</entry> <entry>0 = 0</entry> </row> <row> <entry>MYSQLND_MUX_VERSION_ID</entry> <entry>10000</entry> </row> </tbody> </tgroup> </informaltable> </para> <para> <variablelist> <varlistentry xml:id="constant.mysqlnd-mux-version"> <term> <constant>MYSQLND_MUX_VERSION</constant> (<type>string</type>) </term> <listitem> <simpara> Plugin version string, for example, <quote>1.0.0-prototype</quote>. </simpara> </listitem> </varlistentry> <varlistentry xml:id="constant.mysqlnd-mux-version-id"> <term> <constant>MYSQLND_MUX_VERSION_ID</constant> (<type>integer</type>) </term> <listitem> <simpara> Plugin version number, for example, 10000. </simpara> </listitem> </varlistentry> </variablelist> </para> </appendix> <!-- 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 -->