svn: /phpdoc/en/trunk/internals2/memory/ TSRM.xml persistence.xml
| From: | Joe Watkins | Date: | Tue, 09 Apr 2013 10:15:14 +0000 |
| Subject: | svn: /phpdoc/en/trunk/internals2/memory/ TSRM.xml persistence.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-11181@lists.php.net to get a copy of this message | ||
krakjoe Tue, 09 Apr 2013 10:15:14 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=330044
Log:
tidy wording
Changed paths:
U phpdoc/en/trunk/internals2/memory/TSRM.xml
U phpdoc/en/trunk/internals2/memory/persistence.xml
Modified: phpdoc/en/trunk/internals2/memory/TSRM.xml
===================================================================
--- phpdoc/en/trunk/internals2/memory/TSRM.xml 2013-04-09 10:06:30 UTC (rev 330043)
+++ phpdoc/en/trunk/internals2/memory/TSRM.xml 2013-04-09 10:15:14 UTC (rev 330044)
@@ -4,7 +4,7 @@
<title>Thread-Safe Resource Manager</title>
<simpara>
- When PHP is built with Thread Safety enabled, the Zend engine requires a way to isolate contexts
from one another, such that the threads of a process may service individual requests without
interference. TSRM is omnipitent within PHP, extension authors have to do very little in order to
make sure their extensions can function in both a Thread Safe and Non Thread Safe architecture.
+ When PHP is built with Thread Safety enabled, the engine requires a way to isolate contexts from
one another, such that the threads of a process may service individual requests without
interference. TSRM is omnipitent within PHP, extension authors have to do very little in order to
make sure their extensions can function in both a Thread Safe and Non Thread Safe architecture.
</simpara>
<example xml:id="internals2.structure.globals.using.accessor2">
@@ -25,11 +25,11 @@
</simpara>
<simpara>
- TSRM manages the isolation and safety of all global structures within PHP, from executor globals
to extension globals, a pointer to the isolated storage is also passed around with most, or many of
the API functions in the Zend and PHP layers. The macros TSRMLS_C and TSRMLS_CC translate to
"thread safe local storage" and "thread safe local storage prefixed with a
comma" respectively.
+ TSRM manages the isolation and safety of all global structures within PHP, from executor globals
to extension globals, a pointer to the isolated storage is also passed around with most, or many of
the API functions. The macros TSRMLS_C and TSRMLS_CC translate to "thread safe local
storage" and "thread safe local storage prefixed with a comma" respectively.
</simpara>
<simpara>
- If a function requires a pointer to TSRM, it is declared with the macro TSRMLS_D or TSRMLS_DC in
it's prototype, wihch translates to "thread safe local storage only" and "thread
safe local storage prefixed with a comma" respectively. Many macros within Zend reference TSRM,
so it is a good idea to declare most things to accept TSRM, such that if they need to call upon the
Zend API they do not have to fetch a pointer to TSRM during execution, whenever PHP is built in
Thread Safe mode TSRM is available by default.
+ If a function requires a pointer to TSRM, it is declared with the macro TSRMLS_D or TSRMLS_DC in
it's prototype, wihch translates to "thread safe local storage only" and "thread
safe local storage prefixed with a comma" respectively. Many macros within the engine reference
TSRM, so it is a good idea to declare most things to accept TSRM, such that if they need to call
upon TSRM they do not have to fetch a pointer during execution, whenever PHP is built in Thread Safe
mode TSRM is available by default.
</simpara>
<simpara>
Modified: phpdoc/en/trunk/internals2/memory/persistence.xml
===================================================================
--- phpdoc/en/trunk/internals2/memory/persistence.xml 2013-04-09 10:06:30 UTC (rev 330043)
+++ phpdoc/en/trunk/internals2/memory/persistence.xml 2013-04-09 10:15:14 UTC (rev 330044)
@@ -8,12 +8,12 @@
</simpara>
<simpara>
- Persistence can be used, for example, to keep conntections to a database server for multiple
requests, Zend provides a sub-api of its emalloc/efree mechanisms, predictably named pemalloc/pefree
etc
+ Persistence can be used, for example, to keep conntections to a database server for multiple
requests, the engine provides a sub-api of its emalloc/efree mechanisms, predictably named
pemalloc/pefree etc
</simpara>
<note>
<simpara>
- All of the following functions take the additional persistent parameter, should this be false,
Zend will use its regular allocators (emalloc) and the memory should not be considered persistent.
Where memory is allocated as persistent, system allocators are invoked, under most circumstances
they are still not able to return NULL pointers just as the Main memory APIs.
+ All of the following functions take the additional persistent parameter, should this be false,
the engine will use its regular allocators (emalloc) and the memory should not be considered
persistent. Where memory is allocated as persistent, system allocators are invoked, under most
circumstances they are still not able to return NULL pointers just as the Main memory APIs.
</simpara>
</note>
@@ -92,7 +92,7 @@
<caution>
<simpara>
- It is important to remember that memory allocated to be persistent is not optimized or tracked
by the Zend engine; it is not subject to memory_limit.
+ It is important to remember that memory allocated to be persistent is not optimized or tracked
by the engine; it is not subject to memory_limit.
</simpara>
</caution>
</sect1>