<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.posix-isatty" xmlns="http://docbook.org/ns/docbook">
 <refnamediv>
  <refname>posix_isatty</refname>
  <refpurpose>Determine if a file descriptor is an interactive terminal</refpurpose>
 </refnamediv>
 
 <refsect1 role="description">
  &reftitle.description;
  <methodsynopsis>
   <type>bool</type><methodname>posix_isatty</methodname>
   <methodparam><type class="union"><type>resource</type><type>int</type></type><parameter>file_descriptor</parameter></methodparam>
  </methodsynopsis>
   <para>
    Determines if the file descriptor <parameter>file_descriptor</parameter> refers to a valid
    terminal type device.
  </para>
 </refsect1>
    
 <refsect1 role="parameters">
  &reftitle.parameters;
  <para>
   <variablelist>
    &posix.parameter.fd;
   </variablelist>
  </para>
 </refsect1>
       
 <refsect1 role="returnvalues">
  &reftitle.returnvalues;
  <para>
   Returns &true; if <parameter>file_descriptor</parameter> is an open descriptor connected
   to a terminal and &false; otherwise.
  </para>
 </refsect1>

 <refsect1 role="changelog">
  &reftitle.changelog;
  <informaltable>
   <tgroup cols="2">
    <thead>
     <row>
      <entry>&Version;</entry>
      <entry>&Description;</entry>
     </row>
    </thead>
    <tbody>
     <row>
      <entry>8.3.0</entry>
      <entry>
       Type error <constant>E_WARNING</constant>s are now raised for integer
       coercions following the usual PHP type coercion semantics.
      </entry>
     </row>
    </tbody>
   </tgroup>
  </informaltable>
 </refsect1>
       
 <refsect1 role="seealso">
  &reftitle.seealso;
  <para>
   <simplelist>
    <member><function>posix_ttyname</function></member>
    <member><function>stream_isatty</function></member>
   </simplelist>
  </para>
 </refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
