Rasmus Lerdorf wrote: > Uwe Schindler wrote: >> Does not link: >> >> Undefined first referenced >> symbol in file >> php_during_module_startup main/.libs/SAPI.o >> php_during_module_shutdown main/.libs/SAPI.o >> ld: fatal: Symbol referencing errors. No output written to sapi/cli/php >> collect2: ld returned 1 exit status >> gmake: *** [sapi/cli/php] Error 1 > > gah! Who the heck added access functions for the static module globals > in main.c that are static themselves? That makes no sense. > > static int module_startup = 1; > static int module_shutdown = 0; > ... > static int php_during_module_startup() > static int php_during_module_shutdown() > > I had just assumed they were PHP_API functions.
Ok, a better approach checking SG(server_context) instead attached. Try that. -Rasmus
rt.diff
Description: application/macbinary
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php