<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Predefined Constants</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="mysqlnd-mux.configuration.html">Runtime Configuration</a></div> <div class="next" style="text-align: right; float: right;"><a href="mysqlnd-mux.changes.html">Change History</a></div> <div class="up"><a href="book.mysqlnd-mux.html">mysqlnd_mux</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="mysqlnd-mux.constants" class="appendix"> <h1>Predefined Constants</h1> <p class="simpara"> The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime. </p> <p class="para"> <em class="emphasis">Other</em> </p> <p class="para"> The plugins version number can be obtained using <strong><code>MYSQLND_MUX_VERSION</code></strong> or <strong><code>MYSQLND_MUX_VERSION_ID</code></strong>. <strong><code>MYSQLND_MUX_VERSION</code></strong> is the string representation of the numerical version number <strong><code>MYSQLND_MUX_VERSION_ID</code></strong>, which is an integer such as 10000. Developers can calculate the version number as follows. </p> <p class="para"> <table class="doctable informaltable"> <thead> <tr> <th>Version (part)</th> <th>Example</th> </tr> </thead> <tbody class="tbody"> <tr> <td>Major*10000</td> <td>1*10000 = 10000</td> </tr> <tr> <td>Minor*100</td> <td>0*100 = 0</td> </tr> <tr> <td>Patch</td> <td>0 = 0</td> </tr> <tr> <td>MYSQLND_MUX_VERSION_ID</td> <td>10000</td> </tr> </tbody> </table> </p> <p class="para"> <dl> <dt id="constant.mysqlnd-mux-version"> <span class="term"> <strong><code>MYSQLND_MUX_VERSION</code></strong> (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>) </span> <dd> <span class="simpara"> Plugin version string, for example, "<span class="quote">1.0.0-prototype</span>". </span> </dd> </dt> <dt id="constant.mysqlnd-mux-version-id"> <span class="term"> <strong><code>MYSQLND_MUX_VERSION_ID</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Plugin version number, for example, 10000. </span> </dd> </dt> </dl> </p> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="mysqlnd-mux.configuration.html">Runtime Configuration</a></div> <div class="next" style="text-align: right; float: right;"><a href="mysqlnd-mux.changes.html">Change History</a></div> <div class="up"><a href="book.mysqlnd-mux.html">mysqlnd_mux</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>