<slide>
<title>Functions</title>
<break/>
<blurb>Function declaration (in php_xdebug.h):</blurb>
<example>PHP_FUNCTION(xdebug_start_error_collection);</example>
<break/>
<blurb>Function definition (in xdebug.c):</blurb>
<example><![CDATA[PHP_FUNCTION(xdebug_start_error_collection)
{
    if (XG(do_collect_errors) == 1) {
        php_error(E_NOTICE, "Error collection was already started");
    }
    XG(do_collect_errors) = 1;
}]]></example>
<break/>
<blurb>Function entry array (in xdebug.c):</blurb>
<example><![CDATA[zend_function_entry xdebug_functions[] = {
...
    PHP_FE(xdebug_start_error_collection,     NULL)
...
    {NULL, NULL, NULL}
};
]]></example>
</slide>
