<!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>Runtime Configuration</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="sybase.installation.html">Installation</a></div> <div class="next" style="text-align: right; float: right;"><a href="sybase.resources.html">Resource Types</a></div> <div class="up"><a href="sybase.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="sybase.configuration" class="section"> <h2 class="title">Runtime Configuration</h2> <p class="simpara"> The behaviour of these functions is affected by settings in <var class="filename">php.ini</var>. </p> <p class="para"> <table class="doctable table"> <caption><strong>Sybase configuration options</strong></caption> <thead> <tr> <th>Name</th> <th>Default</th> <th>Changeable</th> <th>Changelog</th> </tr> </thead> <tbody class="tbody"> <tr> <td><a href="sybase.configuration.html#ini.sybase.allow-persistent" class="link">sybase.allow_persistent</a></td> <td>"1"</td> <td>PHP_INI_ALL</td> <td>PHP_INI_ALL in PHP <= 4.0.2. PHP_INI_SYSTEM in PHP <= 4.0.3.</td> </tr> <tr> <td><a href="sybase.configuration.html#ini.sybase.max-persistent" class="link">sybase.max_persistent</a></td> <td>"-1"</td> <td>PHP_INI_ALL</td> <td>PHP_INI_ALL in PHP <= 4.0.2. PHP_INI_SYSTEM in PHP <= 4.0.3.</td> </tr> <tr> <td><a href="sybase.configuration.html#ini.sybase.max-links" class="link">sybase.max_links</a></td> <td>"-1"</td> <td>PHP_INI_ALL</td> <td>PHP_INI_ALL in PHP <= 4.0.2. PHP_INI_SYSTEM in PHP <= 4.0.3.</td> </tr> <tr> <td>sybase.interface_file</td> <td>"/usr/sybase/interfaces"</td> <td>PHP_INI_SYSTEM</td> <td class="empty"> </td> </tr> <tr> <td><a href="sybase.configuration.html#ini.sybase.min-error-severity" class="link">sybase.min_error_severity</a></td> <td>"10"</td> <td>PHP_INI_ALL</td> <td class="empty"> </td> </tr> <tr> <td><a href="sybase.configuration.html#ini.sybase.min-message-severity" class="link">sybase.min_message_severity</a></td> <td>"10"</td> <td>PHP_INI_ALL</td> <td class="empty"> </td> </tr> <tr> <td>sybase.compatability_mode</td> <td>"0"</td> <td>PHP_INI_ALL</td> <td class="empty"> </td> </tr> <tr> <td><a href="sybase.configuration.html#ini.magic-quotes-sybase" class="link">magic_quotes_sybase</a></td> <td>"0"</td> <td>PHP_INI_ALL</td> <td>Deprecated in PHP 5.3.0. Removed in PHP 5.4.0.</td> </tr> </tbody> </table> </p> <p class="para">Here's a short explanation of the configuration directives.</p> <p class="para"> <dl> <dt id="ini.sybase.allow-persistent"> <span class="term"> <em><code class="parameter">sybase.allow_persistent</code></em> <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span> </span> <dd> <p class="para"> Whether to allow persistent Sybase connections. </p> </dd> </dt> <dt id="ini.sybase.max-persistent"> <span class="term"> <em><code class="parameter">sybase.max_persistent</code></em> <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span> </span> <dd> <p class="para"> The maximum number of persistent Sybase connections per process. -1 means no limit. </p> </dd> </dt> <dt id="ini.sybase.max-links"> <span class="term"> <em><code class="parameter">sybase.max_links</code></em> <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span> </span> <dd> <p class="para"> The maximum number of Sybase connections per process, including persistent connections. -1 means no limit. </p> </dd> </dt> <dt id="ini.sybase.min-error-severity"> <span class="term"> <em><code class="parameter">sybase.min_error_severity</code></em> <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span> </span> <dd> <p class="para"> Minimum error severity to display. </p> </dd> </dt> <dt id="ini.sybase.min-message-severity"> <span class="term"> <em><code class="parameter">sybase.min_message_severity</code></em> <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span> </span> <dd> <p class="para"> Minimum message severity to display. </p> </dd> </dt> <dt id="ini.magic-quotes-sybase"> <span class="term"> <em><code class="parameter">magic_quotes_sybase</code></em> <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span> </span> <dd> <p class="para"> If <em><code class="parameter">magic_quotes_sybase</code></em> is on, a single-quote is escaped with a single-quote instead of a backslash if <a href="info.configuration.html#ini.magic-quotes-gpc" class="link">magic_quotes_gpc</a> or <a href="info.configuration.html#ini.magic-quotes-runtime" class="link">magic_quotes_runtime</a> are enabled. This setting is also respected by <span class="function"><a href="function.addslashes.html" class="function">addslashes()</a></span> and <span class="function"><a href="function.stripslashes.html" class="function">stripslashes()</a></span>. </p> <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para"> Note that when <em><code class="parameter">magic_quotes_sybase</code></em> is ON it completely overrides <em><code class="parameter">magic_quotes_gpc </code></em>. In this case even when <em><code class="parameter">magic_quotes_gpc</code></em> is enabled neither double quotes, backslashes or NUL's will be escaped. </p> </p></blockquote> <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This feature has been <em class="emphasis">DEPRECATED</em> as of PHP 5.3.0 and <em class="emphasis">REMOVED</em> as of PHP 5.4.0.</p></div> </dd> </dt> </dl> </p> <p class="para"> <table class="doctable table"> <caption><strong>Sybase-CT configuration options</strong></caption> <thead> <tr> <th>Name</th> <th>Default</th> <th>Changeable</th> <th>Changelog</th> </tr> </thead> <tbody class="tbody"> <tr> <td><a href="sybase.configuration.html#ini.sybct.allow-persistent" class="link">sybct.allow_persistent</a></td> <td>"1"</td> <td>PHP_INI_SYSTEM</td> <td>PHP_INI_ALL in PHP <= 4.0.2. Available since PHP 4.0.2. Removed in PHP 4.0.3.</td> </tr> <tr> <td><a href="sybase.configuration.html#ini.sybct.max-persistent" class="link">sybct.max_persistent</a></td> <td>"-1"</td> <td>PHP_INI_SYSTEM</td> <td>PHP_INI_ALL in PHP <= 4.0.2. Available since PHP 4.0.2. Removed in PHP 4.0.3.</td> </tr> <tr> <td><a href="sybase.configuration.html#ini.sybct.max-links" class="link">sybct.max_links</a></td> <td>"-1"</td> <td>PHP_INI_SYSTEM</td> <td>PHP_INI_ALL in PHP <= 4.0.2. Available since PHP 4.0.2. Removed in PHP 4.0.3.</td> </tr> <tr> <td><a href="sybase.configuration.html#ini.sybct.min-server-severity" class="link">sybct.min_server_severity</a></td> <td>"10"</td> <td>PHP_INI_ALL</td> <td>Available since PHP 4.0.2. Removed in PHP 4.0.3.</td> </tr> <tr> <td><a href="sybase.configuration.html#ini.sybct.min-client-severity" class="link">sybct.min_client_severity</a></td> <td>"10"</td> <td>PHP_INI_ALL</td> <td>Available since PHP 4.0.2. Removed in PHP 4.0.3.</td> </tr> <tr> <td><a href="sybase.configuration.html#ini.sybct.hostname" class="link">sybct.hostname</a></td> <td>NULL</td> <td>PHP_INI_ALL</td> <td>Available since PHP 4.0.2. Removed in PHP 4.0.3.</td> </tr> <tr> <td><a href="sybase.configuration.html#ini.sybct.deadlock-retry-count" class="link">sybct.deadlock_retry_count</a></td> <td>"0"</td> <td>PHP_INI_ALL</td> <td>Available since PHP 4.3.0.</td> </tr> </tbody> </table> </p> <p class="para">Here's a short explanation of the configuration directives.</p> <p class="para"> <dl> <dt id="ini.sybct.allow-persistent"> <span class="term"> <em><code class="parameter">sybct.allow_persistent</code></em> <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span> </span> <dd> <p class="para"> Whether to allow persistent Sybase-CT connections. The default is on. </p> </dd> </dt> <dt id="ini.sybct.max-persistent"> <span class="term"> <em><code class="parameter">sybct.max_persistent</code></em> <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span> </span> <dd> <p class="para"> The maximum number of persistent Sybase-CT connections per process. The default is -1 meaning unlimited. </p> </dd> </dt> <dt id="ini.sybct.max-links"> <span class="term"> <em><code class="parameter">sybct.max_links</code></em> <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span> </span> <dd> <p class="para"> The maximum number of Sybase-CT connections per process, including persistent connections. The default is -1 meaning unlimited. </p> </dd> </dt> <dt id="ini.sybct.min-server-severity"> <span class="term"> <em><code class="parameter">sybct.min_server_severity</code></em> <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span> </span> <dd> <p class="para"> Server messages with severity greater than or equal to sybct.min_server_severity will be reported as warnings. This value can also be set from a script by calling <span class="function"><a href="function.sybase-min-server-severity.html" class="function">sybase_min_server_severity()</a></span>. The default is 10 which reports errors of information severity or greater. </p> </dd> </dt> <dt id="ini.sybct.min-client-severity"> <span class="term"> <em><code class="parameter">sybct.min_client_severity</code></em> <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span> </span> <dd> <p class="para"> Client library messages with severity greater than or equal to sybct.min_client_severity will be reported as warnings. This value can also be set from a script by calling <span class="function"><a href="function.sybase-min-client-severity.html" class="function">sybase_min_client_severity()</a></span>. The default is 10 which effectively disables reporting. </p> </dd> </dt> <dt id="ini.sybct.login-timeout"> <span class="term"> <em><code class="parameter">sybct.login_timeout</code></em> <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span> </span> <dd> <p class="para"> The maximum time in seconds to wait for a connection attempt to succeed before returning failure. Note that if max_execution_time has been exceeded when a connection attempt times out, your script will be terminated before it can take action on failure. The default is one minute. </p> </dd> </dt> <dt id="ini.sybct.timeout"> <span class="term"> <em><code class="parameter">sybct.timeout</code></em> <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span> </span> <dd> <p class="para"> The maximum time in seconds to wait for a select_db or query operation to succeed before returning failure. Note that if max_execution_time has been exceeded when an operation times out, your script will be terminated before it can take action on failure. The default is no limit. </p> </dd> </dt> <dt id="ini.sybct.hostname"> <span class="term"> <em><code class="parameter">sybct.hostname</code></em> <span class="type"><a href="language.types.string.html" class="type string">string</a></span> </span> <dd> <p class="para"> The name of the host you claim to be connecting from, for display by sp_who. The default is none. </p> </dd> </dt> <dt id="ini.sybct.deadlock-retry-count"> <span class="term"> <em><code class="parameter">sybct.deadlock_retry_count</code></em> <span class="type"><a href="language.types.integer.html" class="type int">int</a></span> </span> <dd> <p class="para"> Allows you to define how often deadlocks are to be retried. The default is 0, value -1 means "forever". </p> </dd> </dt> </dl> </p> <p class="para"> For further details and definitions of the PHP_INI_* modes, see the <a href="configuration.changes.modes.html" class="xref">Where a configuration setting may be set</a>. </p> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="sybase.installation.html">Installation</a></div> <div class="next" style="text-align: right; float: right;"><a href="sybase.resources.html">Resource Types</a></div> <div class="up"><a href="sybase.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>