<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.posix.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.posix-isatty.php',
    1 => 'posix_isatty',
    2 => 'Ermittelt, ob ein Dateideskriptor ein interaktives Terminal ist',
  ),
  'up' => 
  array (
    0 => 'ref.posix.php',
    1 => 'POSIX Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.posix-initgroups.php',
    1 => 'posix_initgroups',
  ),
  'next' => 
  array (
    0 => 'function.posix-kill.php',
    1 => 'posix_kill',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/posix/functions/posix-isatty.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.posix-isatty" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">posix_isatty</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">posix_isatty</span> &mdash; <span class="dc-title">Ermittelt, ob ein Dateideskriptor ein interaktives Terminal ist</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.posix-isatty-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>posix_isatty</strong></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>|<span class="type"><a href="language.types.integer.php" class="type int">int</a></span></span> <code class="parameter">$file_descriptor</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Ermittelt, ob der Dateideskriptor <code class="parameter">file_descriptor</code>
   auf ein gültiges terminalartiges Gerät verweist.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.posix-isatty-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
 <dt><code class="parameter">file_descriptor</code></dt>
 <dd>
  <p class="para">
   Der Dateideskriptor, welcher entweder eine Datei-<span class="type">Ressource</span>
   oder ein Wert vom Typ <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> sein sollte. Ist dies ein
   <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>, dann wird davon ausgegangen, dass es sich um einen
   Dateideskriptor handelt, welcher direkt an den zugrundeliegenden
   Systemaufruf übergeben werden kann.
  </p>
 </dd>

   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.posix-isatty-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Gibt <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> zurück, falls <code class="parameter">file_descriptor</code> ein
   offener Deskriptor ist, der mit einem Terminal verbunden ist, und
   andernfalls <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.posix-isatty-changelog">
  <h3 class="title">Changelog</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Beschreibung</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.4.0</td>
      <td>
       Wenn der übergebene Dateideskriptor/-stream ungültig ist, wird errno
       (die Fehlernummer) auf <strong><code>EBADF</code></strong> gesetzt.
      </td>
     </tr>

     <tr>
      <td>8.3.0</td>
      <td>
       Wenn ein Integer zwangsweise umgewandelt wird (coercive typing), wird
       nun ein Typfehler der Stufe <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> ausgelöst,
       der der üblichen PHP-Semantik für Typzwang entspricht.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-function.posix-isatty-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.posix-ttyname.php" class="function" rel="rdfs-seeAlso">posix_ttyname()</a> - Ermittelt den Namen des Terminal-Devices</span></li>
    <li><span class="function"><a href="function.stream-isatty.php" class="function" rel="rdfs-seeAlso">stream_isatty()</a> - Check if a stream is a TTY</span></li>
   </ul>
  </p>
 </div>


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