svn: /phpdoc/en/trunk/internals2/memory/ management.xml
| From: | Peter Cowburn | Date: | Tue, 07 May 2013 07:17:22 +0000 |
| Subject: | svn: /phpdoc/en/trunk/internals2/memory/ management.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-11231@lists.php.net to get a copy of this message | ||
salathe Tue, 07 May 2013 07:17:22 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=330182
Log:
More proofreading still needs to be done on this page. I only looked at the first couple of
paragraphs.
--
Provided by anonymous #26427 ()
Bug: https://bugs.php.net/26427 (Not a bug) fopen text-mode
does not play nicely with heredoc
Changed paths:
U phpdoc/en/trunk/internals2/memory/management.xml
Modified: phpdoc/en/trunk/internals2/memory/management.xml
===================================================================
--- phpdoc/en/trunk/internals2/memory/management.xml 2013-05-07 07:14:49 UTC (rev 330181)
+++ phpdoc/en/trunk/internals2/memory/management.xml 2013-05-07 07:17:22 UTC (rev 330182)
@@ -4,16 +4,16 @@
<title>Basic memory management</title>
<para>
- The engines memory management is implemented with features important to a system like PHP. The
exact functionality of the engines memory management, and the optmizations performed, are out of the
scope of this document, however a good understanding of its functionality provides a basis for a
good understanding of the rest of <code>Hacker's</code> guide, and introduce you to
terminology and functionality used through out PHP.
+ The engine's memory management is implemented with features important to a system like PHP.
The exact functionality of the engine's memory management and the optmizations performed are
out of the scope of this document. However, a good understanding of its functionality provides a
basis for a good understanding of the rest of the <code>Hacker's Guide</code>, and
introduce you to terminology and functionality used throughout PHP.
</para>
<para>
- The most important of it's features for the <code>Hacker</code>, and the first
to mention is tracking allocations. Tracking allocations allow the memory manager to avoid leaks, a
thorn in the side of most <code>Hacker's</code>. When PHP is built in debug mode
(<code>--enable-debug</code>), detected leaks are reported, in a perfect world they
would never get to deployment.
+ The most important of its features for the <code>Hacker</code>, and the first thing
to mention is tracking allocations. Tracking allocations allow the memory manager to avoid leaks, a
thorn in the side of most <code>Hackers</code>. When PHP is built in debug mode
(<code>--enable-debug</code>), detected leaks are reported, in a perfect world they
would never get to deployment.
</para>
- <para>While tracking allocations is an important, and highly useful feature, the
<code>Hacker</code> should not become lazy ! Always attempt to resolve leaks before
deploying your code, a memory leak in a SAPI environment can become a very big problem, very
quickly.</para>
+ <para>While tracking allocations is an important, and highly useful feature, the
<code>Hacker</code> should not become lazy! Always attempt to resolve leaks before
deploying your code, a memory leak in a SAPI environment can become a very big problem, very
quickly.</para>
- <para>Another, perhaps more incidental, but still noteworthy feature, is that the memory
manager is the part that allows a hard limit on memory usage for each instance of PHP. As we all
know, there is no such thing as unlimited. If some code is running out of memory, it is likely to be
written wrong, either by the <code>Hacker</code>, or the programmer of PHP. Limiting the
memory therefore is not a restriction on the language that is supposed to be experienced in
production, it is simply a way from stopping development environments from spiraling out of control
when mistakes are made, and equally, when bugs are found in production.</para>
+ <para>Another, perhaps more incidental but still noteworthy, feature is that the memory
manager is the part that allows a hard limit on memory usage for each instance of PHP. As we all
know, there is no such thing as unlimited. If some code is running out of memory, it is likely to be
written wrong, either by the <code>Hacker</code>, or the programmer of PHP. Limiting the
memory therefore is not a restriction on the language that is supposed to be experienced in
production, it is simply a way from stopping development environments from spiraling out of control
when mistakes are made, and equally, when bugs are found in production.</para>
<para>From the <code>Hacker's</code> perspective, the memory management API
looks very much like libc's (or whoever the <code>Hacker</code> prefers !) malloc
implementation.</para>