diff --git a/internals2/memory/TSRM.xml b/internals2/memory/TSRM.xml
new file mode 100644
index 0000000000..6208c00e70
--- /dev/null
+++ b/internals2/memory/TSRM.xml
@@ -0,0 +1,9 @@
+
+
+
+ Thread-Safe Resource Manager
+
+
+
+
+
diff --git a/internals2/memory/index.xml b/internals2/memory/index.xml
index 9d0a4586aa..404ea01a8f 100644
--- a/internals2/memory/index.xml
+++ b/internals2/memory/index.xml
@@ -1,9 +1,18 @@
-
+
Memory management
-
-
+
+
+ Memory management in the Zend Engine is deceptively simple. There are some
+ APIs to learn, and some concepts behind them to understand, but that's about
+ all.
+
+
+ &internals2.memory.management;
+ &internals2.memory.persistence;
+ &internals2.memory.TSRM;
+
+
+ Basic memory management
+
+
+
+
+
\ No newline at end of file
diff --git a/internals2/memory/persistence.xml b/internals2/memory/persistence.xml
new file mode 100644
index 0000000000..0aa9fddc14
--- /dev/null
+++ b/internals2/memory/persistence.xml
@@ -0,0 +1,9 @@
+
+
+
+ Data persistence
+
+
+
+
+
diff --git a/internals2/structure/index.xml b/internals2/structure/index.xml
index 627d3f641c..63a81d410e 100644
--- a/internals2/structure/index.xml
+++ b/internals2/structure/index.xml
@@ -1,9 +1,9 @@
-
+
Extension structure
-
+
Many extension-writing guides focus on simple examples first and ignore the
requirements of more complex implementations until later. Often such guides
must repeat themselves over and over in order to describe these new
@@ -11,7 +11,7 @@
a mature, practical implementation, in order to prepare users for needs and
issues they will almost always encounter in the process of extension
development.
-
+
&internals2.structure.files;
&internals2.structure.basics;
diff --git a/internals2/structure/tests.xml b/internals2/structure/tests.xml
index 659969843e..dd95d91d93 100644
--- a/internals2/structure/tests.xml
+++ b/internals2/structure/tests.xml
@@ -1,8 +1,21 @@
-
+
Testing an extension
-
+
+
+ One of the accepted requirements of good programming is testing. PHP provides
+ a test harness for unit regression tests, in the form of a script called
+ run-tests.php.
+
+
+
+ Tests for a particular module are stored in the tests/
+ subdirectory of the module's folder, and have a .phpt
+ extension. For details of the PHPT format, see
+ .
+
+