RE: [PHP-CVS] cvs: php4(PHP_4_3) /ext/standardbasic_functions.c

From: Date: Wed, 29 Jan 2003 01:19:39 +0000
Subject: RE: [PHP-CVS] cvs: php4(PHP_4_3) /ext/standardbasic_functions.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-18262@lists.php.net to get a copy of this message
yeah, ilia already told me, i moved it to request_startup|shutdown again. my issue was, that CoUninitialize() was called in the basic_functions shutdown handler during module shutdown, so the com module which was shut down after basic_functions segfaulted. now CoUninitialize() is called after all modules are shut down. regards, Harald Radi -- nme - we can heal you http://www.nme.at Ortner Radi Schwenk GnbR Tumpenweg 528 5084 Grossgmain, Salzburg Austria > -----Original Message----- > From: Frank M. Kromann [mailto:frank@kromann.info] > Sent: Wednesday, January 29, 2003 12:46 AM > To: Harald Radi > Cc: php-cvs@lists.php.net > Subject: Re: [PHP-CVS] cvs: php4(PHP_4_3) > /ext/standardbasic_functions.c > > > Are you sure this will work with ISAPI ? > > IIRC, CoInitialize was moved from module init to resuest > request init to > stabilize ISAPI. > > - Frank > > > phanto Tue Jan 28 18:46:13 2003 EDT > > > > Modified files: (Branch: PHP_4_3) > > /php4/ext/standard basic_functions.c > > Log: > > moved to php4/main > > > > Index: php4/ext/standard/basic_functions.c > > diff -u php4/ext/standard/basic_functions.c:1.543.2.5 > php4/ext/standard/basic_functions.c:1.543.2.6 > > --- php4/ext/standard/basic_functions.c:1.543.2.5 Tue Dec > 31 11:35:25 > 2002 > > +++ php4/ext/standard/basic_functions.c Tue Jan 28 18:46:13 2003 > > @@ -17,7 +17,7 @@ > > > +------------------------------------------------------------- > ---------+ > > */ > > > > -/* $Id: basic_functions.c,v 1.543.2.5 2002/12/31 16:35:25 > sebastian Exp > $ */ > > +/* $Id: basic_functions.c,v 1.543.2.6 2003/01/28 23:46:13 > phanto Exp $ > */ > > > > #include "php.h" > > #include "php_streams.h" > > @@ -1098,10 +1098,6 @@ > > > > PHP_RINIT_FUNCTION(basic) > > { > > -#ifdef PHP_WIN32 > > - CoInitialize(NULL); > > -#endif > > - > > memset(BG(strtok_table), 0, 256); > > BG(strtok_string) = NULL; > > BG(strtok_zval) = NULL; > > @@ -1182,10 +1178,6 @@ > > if (BG(mmap_file)) { > > munmap(BG(mmap_file), BG(mmap_len)); > > } > > -#endif > > - > > -#ifdef PHP_WIN32 > > - CoUninitialize(); > > #endif > > > > return SUCCESS; > > > > > > > > -- > > PHP CVS Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > >

« previous php.cvs (#18262) next »