is_resource() is not a strict type checking function (patch by Michael Slusarz)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336644 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Peter Cowburn 2015-04-24 09:44:52 +00:00
parent 590013355f
commit e5f41806a6

View file

@ -64,6 +64,15 @@ if (!is_resource($db_link)) {
</example>
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<note>
<para>
<function>is_resource</function> is not a strict type-checking method: it will return &false; if <parameter>var</parameter> is a resource variable that has been closed.
</para>
</note>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;