-
Notifications
You must be signed in to change notification settings - Fork 1
/
zvals.html
121 lines (102 loc) · 5.57 KB
/
zvals.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Zvals — PHP Internals Book</title>
<link rel="stylesheet" href="_static/haiku.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/style.css" type="text/css" />
<link rel="stylesheet" href="_static/print.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '1.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/theme_extras.js"></script>
<link rel="top" title="PHP Internals Book" href="index.html" />
<link rel="next" title="Basic structure" href="zvals/basic_structure.html" />
<link rel="prev" title="Building PHP extensions" href="build_system/building_extensions.html" />
</head>
<body>
<div class="header"><h1 class="heading"><a href="index.html">
<span>PHP Internals Book</span></a></h1>
<h2 class="heading"><span>Zvals</span></h2>
</div>
<div class="topnav">
<p>
«  <a href="build_system/building_extensions.html">Building PHP extensions</a>
  ::  
<a class="uplink" href="index.html">Contents</a>
  ::  
<a href="zvals/basic_structure.html">Basic structure</a>  »
</p>
</div>
<div class="content">
<div class="section" id="zvals">
<h1>Zvals<a class="headerlink" href="#zvals" title="Permalink to this headline">¶</a></h1>
<p>In this chapter the “zval” data structure, which is used to represent PHP values, is introduced. We explain the concepts
behind zvals and how to use them in extension code.</p>
<p>Contents:</p>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="zvals/basic_structure.html">Basic structure</a><ul>
<li class="toctree-l2"><a class="reference internal" href="zvals/basic_structure.html#types-and-values">Types and values</a></li>
<li class="toctree-l2"><a class="reference internal" href="zvals/basic_structure.html#access-macros">Access macros</a></li>
<li class="toctree-l2"><a class="reference internal" href="zvals/basic_structure.html#setting-the-value">Setting the value</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="zvals/memory_management.html">Memory management</a><ul>
<li class="toctree-l2"><a class="reference internal" href="zvals/memory_management.html#value-and-reference-semantics">Value- and reference-semantics</a></li>
<li class="toctree-l2"><a class="reference internal" href="zvals/memory_management.html#reference-counting-and-copy-on-write">Reference-counting and copy-on-write</a></li>
<li class="toctree-l2"><a class="reference internal" href="zvals/memory_management.html#allocating-and-initializing-zvals">Allocating and initializing zvals</a></li>
<li class="toctree-l2"><a class="reference internal" href="zvals/memory_management.html#managing-the-refcount-and-zval-destruction">Managing the refcount and zval destruction</a></li>
<li class="toctree-l2"><a class="reference internal" href="zvals/memory_management.html#copying-zvals">Copying zvals</a></li>
<li class="toctree-l2"><a class="reference internal" href="zvals/memory_management.html#separating-zvals">Separating zvals</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="zvals/casts_and_operations.html">Casts and operations</a><ul>
<li class="toctree-l2"><a class="reference internal" href="zvals/casts_and_operations.html#basic-operations">Basic operations</a></li>
<li class="toctree-l2"><a class="reference internal" href="zvals/casts_and_operations.html#comparisons">Comparisons</a></li>
<li class="toctree-l2"><a class="reference internal" href="zvals/casts_and_operations.html#casts">Casts</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div class="bottomnav">
<p>
«  <a href="build_system/building_extensions.html">Building PHP extensions</a>
  ::  
<a class="uplink" href="index.html">Contents</a>
  ::  
<a href="zvals/basic_structure.html">Basic structure</a>  »
</p>
</div>
<div class="footer feedback">
Send feedback to <a href="mailto:feedback@phpinternalsbook.com">feedback@phpinternalsbook.com</a>
</div>
<div class="footer">
© Copyright 2013, Julien Pauli - Anthony Ferrara - Nikita Popov.
</div>
<div class="footer feedback">
All Rights Reserved
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-41617167-1', 'phpinternalsbook.com');
ga('send', 'pageview');
</script>
</body>
</html>