cvs: phpdoc /en/internals2/memory TSRM.xml index.xml management.xml persistence.xml /en/internals2/structure index.xml tests.xml
| From: | Gwynne Raskind | Date: | Thu, 25 Dec 2008 21:04:11 +0000 |
| Subject: | cvs: phpdoc /en/internals2/memory TSRM.xml index.xml management.xml persistence.xml /en/internals2/structure index.xml tests.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2828@lists.php.net to get a copy of this message | ||
gwynne Thu Dec 25 21:04:11 2008 UTC
Added files:
/phpdoc/en/internals2/memory TSRM.xml management.xml
persistence.xml
Modified files:
/phpdoc/en/internals2/memory index.xml
/phpdoc/en/internals2/structure index.xml tests.xml
Log:
some new material on tests and mem mgmt, para->simpara
http://cvs.php.net/viewvc.cgi/phpdoc/en/internals2/memory/index.xml?r1=1.2&r2=1.3&diff_format=u
Index: phpdoc/en/internals2/memory/index.xml
diff -u phpdoc/en/internals2/memory/index.xml:1.2 phpdoc/en/internals2/memory/index.xml:1.3
--- phpdoc/en/internals2/memory/index.xml:1.2 Wed Jun 20 22:39:08 2007
+++ phpdoc/en/internals2/memory/index.xml Thu Dec 25 21:04:11 2008
@@ -1,9 +1,18 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<chapter xml:id="internals2.memory" xmlns="http://docbook.org/ns/docbook">
<title>Memory management</title>
- <para>
- </para>
+
+ <simpara>
+ 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.
+ </simpara>
+
+ &internals2.memory.management;
+ &internals2.memory.persistence;
+ &internals2.memory.TSRM;
+
</chapter>
<!-- Keep this comment at the end of the file
http://cvs.php.net/viewvc.cgi/phpdoc/en/internals2/structure/index.xml?r1=1.4&r2=1.5&diff_format=u
Index: phpdoc/en/internals2/structure/index.xml
diff -u phpdoc/en/internals2/structure/index.xml:1.4 phpdoc/en/internals2/structure/index.xml:1.5
--- phpdoc/en/internals2/structure/index.xml:1.4 Sun May 18 10:55:25 2008
+++ phpdoc/en/internals2/structure/index.xml Thu Dec 25 21:04:11 2008
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<chapter xml:id="internals2.structure" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Extension structure</title>
- <para>
+ <simpara>
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.
- </para>
+ </simpara>
&internals2.structure.files;
&internals2.structure.basics;
http://cvs.php.net/viewvc.cgi/phpdoc/en/internals2/structure/tests.xml?r1=1.1&r2=1.2&diff_format=u
Index: phpdoc/en/internals2/structure/tests.xml
diff -u phpdoc/en/internals2/structure/tests.xml:1.1 phpdoc/en/internals2/structure/tests.xml:1.2
--- phpdoc/en/internals2/structure/tests.xml:1.1 Thu Jun 21 00:30:22 2007
+++ phpdoc/en/internals2/structure/tests.xml Thu Dec 25 21:04:11 2008
@@ -1,8 +1,21 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<sect1 xml:id="internals2.structure.tests" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Testing an extension</title>
- <para/>
+
+ <simpara>
+ 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
+ <command>run-tests.php</command>.
+ </simpara>
+
+ <simpara>
+ Tests for a particular module are stored in the <filename>tests/</filename>
+ subdirectory of the module's folder, and have a <filename>.phpt</filename>
+ extension. For details of the PHPT format, see
+ <link xlink:href="http://qa.php.net/write-test.php"/>.
+ </simpara>
+
</sect1>
<!-- Keep this comment at the end of the file
http://cvs.php.net/viewvc.cgi/phpdoc/en/internals2/memory/TSRM.xml?view=markup&rev=1.1
Index: phpdoc/en/internals2/memory/TSRM.xml
+++ phpdoc/en/internals2/memory/TSRM.xml
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- $Revision: 1.1 $ -->
<sect1 xml:id="internals2.memory.TSRM" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Thread-Safe Resource Manager</title>
<simpara>
</simpara>
</sect1>
http://cvs.php.net/viewvc.cgi/phpdoc/en/internals2/memory/management.xml?view=markup&rev=1.1
Index: phpdoc/en/internals2/memory/management.xml
+++ phpdoc/en/internals2/memory/management.xml
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- $Revision: 1.1 $ -->
<sect1 xml:id="internals2.memory.management" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Basic memory management</title>
<simpara>
</simpara>
</sect1>
http://cvs.php.net/viewvc.cgi/phpdoc/en/internals2/memory/persistence.xml?view=markup&rev=1.1
Index: phpdoc/en/internals2/memory/persistence.xml
+++ phpdoc/en/internals2/memory/persistence.xml
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- $Revision: 1.1 $ -->
<sect1 xml:id="internals2.memory.persistence" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Data persistence</title>
<simpara>
</simpara>
</sect1>