cvs: php4 / apidoc-zend.txt
| From: | Hartmut Holzgraefe | Date: | Wed, 23 Jan 2002 09:52:28 +0000 |
| Subject: | cvs: php4 / apidoc-zend.txt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-9134@lists.php.net to get a copy of this message | ||
hholzgra Wed Jan 23 04:52:28 2002 EDT
Modified files:
/php4 apidoc-zend.txt
Log:
added info about FETCH macros
(written over a year ago but somehow never commited)
Index: php4/apidoc-zend.txt
diff -u php4/apidoc-zend.txt:1.4 php4/apidoc-zend.txt:1.5
--- php4/apidoc-zend.txt:1.4 Thu Oct 19 11:05:44 2000
+++ php4/apidoc-zend.txt Wed Jan 23 04:52:28 2002
@@ -150,6 +150,10 @@
Comma, _D stands for Declaration and _DC stands for Declaration Comma.
Note that there's NO comma between the last argument and ???LS_DC or ???LS_CC.
+If you do not pass the structure as an argument you can always fetch it by
+using the appropriate ???LS_FETCH() macros within a functions variable
+declarations.
+
In general, every module that makes use of globals should use this approach
if it plans to be thread safe.