From 440c48b014390b8aaaff10b743ab089452885bd2 Mon Sep 17 00:00:00 2001 From: Gwynne Raskind Date: Wed, 9 Apr 2008 07:00:27 +0000 Subject: [PATCH] Use static modifier, fix some version numbers, add more info about counter git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@257015 c90b9560-bf6c-de11-be94-00142212c4b1 --- internals2/counter.xml | 3 ++- internals2/intro.xml | 8 ++++---- internals2/structure/modstruct.xml | 20 +++++++++++++------- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/internals2/counter.xml b/internals2/counter.xml index c0aa120aea..e99973b3b4 100644 --- a/internals2/counter.xml +++ b/internals2/counter.xml @@ -1,5 +1,5 @@ - + The "counter" Extension - A Continuing Example @@ -636,6 +636,7 @@ $counter_four->printCounterInfo(); &reftitle.description; + static CounterCounter::getNamed stringname diff --git a/internals2/intro.xml b/internals2/intro.xml index 7b3a7c791c..e56b936249 100644 --- a/internals2/intro.xml +++ b/internals2/intro.xml @@ -1,5 +1,5 @@ - + + The zend_module structure @@ -463,11 +463,7 @@ struct _zend_module_entry { With all these fields to play with, it can be confusing to know which to use for what purpose. Here is the zend_module definition from - a "real-world" example extension. This extension provides a - counter that increases by one every time the function to get its current - value is called. The time at which the counter is reset is controlled by an - INI switch. This is useless in a practical sense, but serves to illustrate - many techniques for extension writing. + the "counter" example extension. @@ -508,7 +504,10 @@ zend_module_entry counter_module_entry = { "counter" is the extension's name, and is used to define the - various callback functions the module passes to Zend. + various callback functions the module passes to Zend. "counter" uses + module, globals, and request functions at startup and shutdown times, and + provides information to phpinfo, so all seven + callbacks are defined. @@ -530,6 +529,13 @@ zend_module_entry counter_module_entry = { + + + "counter" uses per-module globals, so + PHP_MODULE_GLOBALS is used + + + This module has no post-deactivate function, so &null; is used.