danbeck         Thu May 17 19:23:43 2001 EDT

  Modified files:              
    /phpdoc/en/functions        var.xml 
  Log:
  added notes about serializing objects in php4 and added links to the new 
serialization section of oop.xml
  
Index: phpdoc/en/functions/var.xml
diff -u phpdoc/en/functions/var.xml:1.47 phpdoc/en/functions/var.xml:1.48
--- phpdoc/en/functions/var.xml:1.47    Thu May 17 01:03:33 2001
+++ phpdoc/en/functions/var.xml Thu May 17 19:23:42 2001
@@ -883,14 +883,23 @@
      This is useful for storing or passing PHP values around without
      losing their type and structure.
     </simpara>
-    <simpara>
-     To make the serialized string into a PHP value again, use
-     <function>unserialize</function>.    <function>Serialize</function>
-     handles the types <type>integer</type>, <type>double</type>,
-     <type>string</type>, <type>array</type> (multidimensional) and
-     <type>object</type> (object properties will be serialized, but
-     methods are lost).
-    </simpara>
+   <simpara>
+    To make the serialized string into a PHP value again, use
+    <function>unserialize</function>.  <function>Serialize</function>
+    handles the types <type>integer</type>, <type>double</type>,
+    <type>string</type>, <type>array</type> (multidimensional) and
+    <type>object</type>.
+   </simpara>
+   <note>
+    <para>
+     In PHP 3, object properties will be serialized, but methods are
+     lost.  PHP 4 removes that limitation and restores both properties
+     and methods.  Please see the <link
+     linkend="language.oop.serialization">Serializing Objects</link>
+     section of <link linkend="language.oop">Classes and
+     Objects</link> for more information.
+    </para>
+   </note>
     <para>
      <example>
       <title><function>Serialize</function> example</title>
@@ -913,6 +922,9 @@
       </programlisting>
      </example>
     </para>
+   <para>
+    See Also: <function>unserialize</function>.
+   </para>
    </refsect1>
   </refentry>
   
@@ -1019,6 +1031,16 @@
      If an object was serialized, its methods are not preserved in the
      returned value.
     </simpara>
+   <note>
+    <para>
+     In PHP 3, methods are not preserved when unserializing a
+     serialized object. PHP 4 removes that limitation and restores
+     both properties and methods.  Please see the <link
+     linkend="language.oop.serialization">Serializing Objects</link>
+     section of <link linkend="language.oop">Classes and
+     Objects</link> or more information.
+    </para>
+   </note>
     <para>
      <example>
       <title><function>Unserialize</function> example</title>
@@ -1044,6 +1066,9 @@
       </programlisting>
      </example>
     </para>
+   <para>
+    See Also: <function>serialize</function>.
+   </para>
    </refsect1>
   </refentry>
 


Reply via email to