<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.uodbc.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.odbc-longreadlen.php',
    1 => 'odbc_longreadlen',
    2 => 'Handling of LONG columns',
  ),
  'up' => 
  array (
    0 => 'ref.uodbc.php',
    1 => 'ODBC Functions',
  ),
  'prev' => 
  array (
    0 => 'function.odbc-gettypeinfo.php',
    1 => 'odbc_gettypeinfo',
  ),
  'next' => 
  array (
    0 => 'function.odbc-next-result.php',
    1 => 'odbc_next_result',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/uodbc/functions/odbc-longreadlen.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.odbc-longreadlen" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">odbc_longreadlen</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">odbc_longreadlen</span> &mdash; <span class="dc-title">Handling of LONG columns</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.odbc-longreadlen-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>odbc_longreadlen</strong></span>(<span class="methodparam"><span class="type">Odbc\Result</span> <code class="parameter">$statement</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$length</code></span>): <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>

  <p class="para rdfs-comment">
   Controls handling of <code class="literal">LONG</code>, <code class="literal">LONGVARCHAR</code> and <code class="literal">LONGVARBINARY</code> columns.
   The default length can be set using the
   <a href="odbc.configuration.php#ini.uodbc.defaultlrl" class="link">uodbc.defaultlrl</a> <var class="filename">php.ini</var> directive.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.odbc-longreadlen-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">statement</code></dt>
     <dd>
      <p class="para">
       The ODBC result object.
      </p>
     </dd>
    
    
     <dt><code class="parameter">length</code></dt>
     <dd>
      <p class="para">
       The number of bytes returned to PHP is controlled by the parameter
       length. If it is set to <code class="literal">0</code>, long column data is passed through to the
       client (i.e. printed) when retrieved with <span class="function"><a href="function.odbc-result.php" class="function">odbc_result()</a></span>.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.odbc-longreadlen-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Always returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.odbc-longreadlen-changelog">
  <h3 class="title">Changelog</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.4.0</td>
 <td>
  <code class="parameter">statement</code> expects an <span class="classname"><strong class="classname">Odbc\Result</strong></span>
  instance now; previously, a <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> was expected.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 notes" id="refsect1-function.odbc-longreadlen-notes">
  <h3 class="title">Notes</h3>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    Handling of <code class="literal">LONGVARBINARY</code> columns is also affected by
    <span class="function"><a href="function.odbc-binmode.php" class="function">odbc_binmode()</a></span>.
   </p>
  </p></blockquote>
 </div>

</div><?php manual_footer($setup); ?>