language/predefined/serializable.xml
f94d903985119d3ac00f4528551df947f57b667f
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<phpdoc:classref xml:id="class.serializable" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
5
4

6
5
<title>The Serializable interface</title>
...
...
@@ -25,6 +24,12 @@
25
24
a constructor instead of calling __construct(). If you need to execute the standard
26
25
constructor you may do so in the method.
27
26
</para>
27
+
28
+
<warning>
29
+
<para>
30
+
As of PHP 8.1.0, a class which implements <interfacename>Serializable</interfacename> without also implementing <link linkend="object.serialize">__serialize()</link> and <link linkend="object.unserialize">__unserialize()</link> will generate a deprecation warning.
31
+
</para>
32
+
</warning>
28
33
</section>
29
34
<!-- }}} -->
30
35

...
...
@@ -32,25 +37,22 @@
32
37
&reftitle.interfacesynopsis;
33
38

34
39
<!-- {{{ Synopsis -->
35
-
<classsynopsis>
36
-
<ooclass><classname>Serializable</classname></ooclass>
37
-

38
-
<!-- {{{ Class synopsis -->
39
-
<classsynopsisinfo>
40
-
<ooclass>
41
-
<classname>Serializable</classname>
42
-
</ooclass>
43
-
</classsynopsisinfo>
44
-
<!-- }}} -->
40
+
<classsynopsis class="interface">
41
+
<oointerface>
42
+
<interfacename>Serializable</interfacename>
43
+
</oointerface>
45
44

46
45
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
47
-
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.serializable')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
46
+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.serializable')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='Serializable'])">
47
+
<xi:fallback/>
48
+
</xi:include>
48
49
</classsynopsis>
49
50
<!-- }}} -->
50
51

51
52
</section>
52
53

53
54
<section xml:id="serializable.examples">
55
+
&reftitle.examples;
54
56
<example xml:id="serializable.example.basic"><!-- {{{ -->
55
57
<title>Basic usage</title>
56
58
<programlisting role="php">
...
...
@@ -100,7 +102,6 @@ string(15) "My private data"
100
102
&language.predefined.serializable.unserialize;
101
103

102
104
</phpdoc:classref>
103
-

104
105
<!-- Keep this comment at the end of the file
105
106
Local variables:
106
107
mode: sgml
107
108