Usually for the "main" is the entry point to C / C ++, and standards relate to it specifically because of this, but this is not the only possibility (it is the only one required by the standard, however). How this is actually handled depends on the implementation, since the runtime library needs to tweak the settings before your application takes control. See linker settings for a definitive answer.
php_module_startup looks like it could be what you want, it could be what is ultimately called from a real entry point.
Roger Pate
source share