I found that around all the function you find somthing like that:
/* {{{ proto object imap_fetchstructure(resource stream_id, int msg_no [,
int
options])
Read the full structure of a message */
PHP_FUNCTION(imap_fetchstructure)
{
...
_php_imap_add_body(return_value, body TSRMLS_CC);}
}
/* }}} */
I don't know that from "normal" c code. I will be treated as comment
there.
And the one function call I copied does copy the body structure from imap
to
something "magic".
They're just that... Comments and nothing more. The reason they look so
funny is that the PHP Documentation team has a set of scripts specifically
designed to parse source code files and automatically generate documentation
skeletons from these specially formatted blocks.
That "something magic" is the zval, which is the internals representation of
a PHP data value.
http://www.zend.com/php/internals/extension-writing2.php#Heading3 will get
you a fair distance in understanding what zvals are and how they're
structured.
-Sara
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php