<!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>Returns the Oracle client library version</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.oci-cancel.html">oci_cancel</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.oci-close.html">oci_close</a></div> <div class="up"><a href="ref.oci8.html">OCI8 Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.oci-client-version" class="refentry"> <div class="refnamediv"> <h1 class="refname">oci_client_version</h1> <p class="verinfo">(PHP 5.3.7, PECL OCI8 >= 1.4.6)</p><p class="refpurpose"><span class="refname">oci_client_version</span> — <span class="dc-title">Returns the Oracle client library version</span></p> </div> <div class="refsect1 description" id="refsect1-function.oci-client-version-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">string</span> <span class="methodname"><strong>oci_client_version</strong></span> ( <span class="methodparam">void</span> )</div> <p class="para rdfs-comment"> Returns a string containing the version number of the Oracle C client library that PHP is linked with. </p> </div> <div class="refsect1 parameters" id="refsect1-function.oci-client-version-parameters"> <h3 class="title">Parameters</h3> <p class="para"> None </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.oci-client-version-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns the version number as a string. </p> </div> <div class="refsect1 examples" id="refsect1-function.oci-client-version-examples"> <h3 class="title">Examples</h3> <p class="para"> <div class="example" id="example-1956"> <p><strong>Example #1 <span class="function"><strong>oci_client_version()</strong></span> example</strong></p> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"> <span style="color: #0000BB"><?php<br /> </span><span style="color: #007700">echo </span><span style="color: #DD0000">"Client Version: " </span><span style="color: #007700">. </span><span style="color: #0000BB">oci_client_version</span><span style="color: #007700">(); </span><span style="color: #FF8000">// Client version: 11.2.0.2<br /></span><span style="color: #0000BB">?></span> </span> </code></div> </div> </div> </p> </div> <div class="refsect1 notes" id="refsect1-function.oci-client-version-notes"> <h3 class="title">Notes</h3> <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para"> Oracle libraries before 10<em class="emphasis">g</em>R2 do not have the underlying functionality to get the client library version number. The string "Unknown" will be returned in this case. </p> </p></blockquote> </div> <div class="refsect1 seealso" id="refsect1-function.oci-client-version-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.oci-server-version.html" class="function" rel="rdfs-seeAlso">oci_server_version()</a> - Returns the Oracle Database version</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.oci-cancel.html">oci_cancel</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.oci-close.html">oci_close</a></div> <div class="up"><a href="ref.oci8.html">OCI8 Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>