vrana           Mon Apr  4 05:18:52 2005 EDT

  Modified files:              
    /phpdoc/en/reference/var/functions  unserialize.xml 
  Log:
  False can be returned in two cases (bug #32536)
  
http://cvs.php.net/diff.php/phpdoc/en/reference/var/functions/unserialize.xml?r1=1.17&r2=1.18&ty=u
Index: phpdoc/en/reference/var/functions/unserialize.xml
diff -u phpdoc/en/reference/var/functions/unserialize.xml:1.17 
phpdoc/en/reference/var/functions/unserialize.xml:1.18
--- phpdoc/en/reference/var/functions/unserialize.xml:1.17      Fri Apr  1 
10:14:31 2005
+++ phpdoc/en/reference/var/functions/unserialize.xml   Mon Apr  4 05:18:48 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.17 $ -->
+<!-- $Revision: 1.18 $ -->
 <!-- splitted from ./en/functions/var.xml, last change in rev 1.2 -->
   <refentry id="function.unserialize">
    <refnamediv>
@@ -20,8 +20,18 @@
      back into a PHP value.  The converted value is returned, and can
      be a <type>boolean</type>, <type>integer</type>, <type>float</type>,
      <type>string</type>, <type>array</type> or <type>object</type>.
-     In case the passed string is not unserializeable, &false; is returned.
+     In case the passed string is not unserializeable, &false; is returned and
+     <literal>E_NOTICE</literal> is issued.
     </simpara>
+    <warning>
+     <para>
+      &false; is returned both in the case of an error and if unserializing
+      the serialized &false; value. This special case can be catched by
+      comparing <parameter>str</parameter> with
+      <literal>serialize(false)</literal> or by catching the issued
+      <literal>E_NOTICE</literal>.
+     </para>
+    </warning>
     <note>
      <title>unserialize_callback_func directive</title>
      <para>

Reply via email to