Re: FW: [PHP-DEV] file.c fsock.c ... Again ...
| From: | Zeev Suraski | Date: | Sat, 13 Jan 2001 23:27:34 +0000 |
| Subject: | Re: FW: [PHP-DEV] file.c fsock.c ... Again ... | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-44012@lists.php.net to get a copy of this message | ||
Ok, I did the development under Windows and didn't check the thread-unsafe mode. I'll fix it.
At 00:54 14/1/2001, Sean R. Bright wrote:
Already did, these are happening after getting your changes. (I watch the cvs list as well ;)) -----Original Message----- From: Derick Rethans [mailto:d.rethans@jdimedia.nl] Sent: Saturday, January 13, 2001 6:04 PM To: Sean R. Bright Cc: php-dev@lists.php.net Subject: Re: [PHP-DEV] file.c fsock.c ... Again ... Hello, can you try the latest CVS? Zeev did some work on it today. Derick On Sat, 13 Jan 2001, Sean R. Bright wrote:-- Zeev Suraski <zeev@zend.com> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/Anyone see the logical problem with this besides me? #ifdef ZTS static void file_globals_ctor(FLS_D) <--- THIS is definedif thread safe{zend_register_list_destructors_ex(_file_fopen_dtor, NULL,zend_hash_init(&FG(ht_fsock_keys), 0, NULL, NULL, 1); zend_hash_init(&FG(ht_fsock_socks), 0, NULL, (void (*)(void*))php_msock_destroy, 1);FG(def_chunk_size) = PHP_FSOCK_CHUNK_SIZE; FG(phpsockbuf) = NULL; FG(fgetss_state) = 0; FG(pclose_ret) = 0;} static void file_globals_dtor(FLS_D) {zend_hash_destroy(&FG(ht_fsock_socks)); zend_hash_destroy(&FG(ht_fsock_keys)); php_cleanup_sockbuf(1 FLS_CC);} #endif PHP_MINIT_FUNCTION(file) {le_fopen ="file", module_number);zend_register_list_destructors_ex(_file_popen_dtor, NULL,le_popen ="pipe", module_number);zend_register_list_destructors_ex(_file_socket_dtor,le_socket =NULL, "socket", module_number); #ifdef ZTSnot thread safefile_globals_id = ts_allocate_id(sizeof(php_file_globals),(ts_allocate_ctor) file_globals_ctor, (ts_allocate_dtor) file_gl$ #elsefile_globals_ctor(FLS_C); <--- BUT is called when(i.e. its not defined... #endif Errors happening: .libs/libphp4.a(file.o): In function `php_minit_file': /usr/cvs/php4/ext/standard/file.c:179: undefined reference to `file_globals_ctor' .libs/libphp4.a(fsock.o): In function `php_mshutdown_fsock': /usr/cvs/php4/ext/standard/fsock.c:726: undefined reference to `fsock_globals_dtor' collect2: ld returned 1 exit status-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net