<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc'; $TOC = array(); $TOC_DEPRECATED = array(); $PARENTS = array(); include_once dirname(__FILE__) ."/toc/mysqlnd.plugin.inc"; $setup = array ( 'home' => array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'mysqlnd.plugin.obtaining.php', 1 => 'Obtaining the mysqlnd plugin API', ), 'up' => array ( 0 => 'mysqlnd.plugin.php', 1 => 'MySQL Native Driver Plugin API', ), 'prev' => array ( 0 => 'mysqlnd.plugin.mysql-proxy.php', 1 => 'A comparison of mysqlnd plugins with MySQL Proxy', ), 'next' => array ( 0 => 'mysqlnd.plugin.architecture.php', 1 => 'MySQL Native Driver Plugin Architecture', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mysqlnd/plugin.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?> <div id="mysqlnd.plugin.obtaining" class="section"> <h2 class="title">Obtaining the mysqlnd plugin API</h2> <p class="para"> The <code class="literal">mysqlnd</code> plugin API is simply part of the MySQL Native Driver PHP extension, <code class="literal">ext/mysqlnd</code>. Development started on the <code class="literal">mysqlnd</code> plugin API in December 2009. It is developed as part of the PHP source repository, and as such is available to the public either via Git, or through source snapshot downloads. </p> <p class="para"> Plugin developers can determine the <code class="literal">mysqlnd</code> version through accessing <code class="literal">MYSQLND_VERSION</code>, which is a string of the format <q class="quote">mysqlnd 5.0.7-dev - 091210 - $Revision: 300535</q>, or through <code class="literal">MYSQLND_VERSION_ID</code>, which is an integer such as 50007. Developers can calculate the version number as follows: </p> <table id="mysqlnd.plugin.version-id" class="doctable table"> <caption><strong>MYSQLND_VERSION_ID calculation table</strong></caption> <thead> <tr> <th>Version (part)</th> <th>Example</th> </tr> </thead> <tbody class="tbody"> <tr> <td>Major*10000</td> <td>5*10000 = 50000</td> </tr> <tr> <td>Minor*100</td> <td>0*100 = 0</td> </tr> <tr> <td>Patch</td> <td>7 = 7</td> </tr> <tr> <td>MYSQLND_VERSION_ID</td> <td>50007</td> </tr> </tbody> </table> <p class="para"> During development, developers should refer to the <code class="literal">mysqlnd</code> version number for compatibility and version tests, as several iterations of <code class="literal">mysqlnd</code> could occur during the lifetime of a PHP development branch with a single PHP version number. </p> </div><?php manual_footer($setup); ?>