PHP 4.0 Bug #6883 Updated: php_interbase.dll crashes on ibase_query()...

From: Date: Sat, 28 Oct 2000 03:25:38 +0000
Subject: PHP 4.0 Bug #6883 Updated: php_interbase.dll crashes on ibase_query()...
Groups: php.dev 
Request: Send a blank email to php-dev+get-36173@lists.php.net to get a copy of this message
ID: 6883 Updated by: jah Reported By: ac001@figment.net Status: Feedback Bug Type: InterBase related Assigned To: Comments: This is, I hope, fixed in another way (can't test it because I don't have any Windows machine).You should fetch php4.0.4-dev for win32 from http://www.php4win.de. Or if you would rather stay with a release version, php4.0.3 for win32 from the same place and contact me (jah@php.net) directly for an updated version of php_interbase.dll (thanks to Daniel Beulshausen for compiling it), there was still one critical InterBase-related bug in 4.0.3. Previous Comments: --------------------------------------------------------------------------- [2000-09-26 00:23:48] ac001@figment.net The Interbase PHP module will crash on multithreaded operating systems because an abstraction of functions from the PHP3 port may not have been debugged yet. Please recompile your php_interbase.dll with the following changes to fix this problem: ========================= interbase.c BEFORE ======================= PHP_MINIT_FUNCTION(ibase) { IBLS_FETCH(); ZEND_INIT_MODULE_GLOBALS(ibase, php_ibase_init_globals, NULL); REGISTER_INI_ENTRIES(); ========================= interbase.c AFTER ====================== PHP_MINIT_FUNCTION(ibase) { // IBLS_FETCH(); zend_ibase_globals *ibase_globals; //AC: This does not need to call ts_resource() yet. ZEND_INIT_MODULE_GLOBALS(ibase, php_ibase_init_globals, NULL); //AC: because ZEND_INIT_MODULE_GLOBALS creates a new ibase_globals_id, we // have to make sure that all globals are saved under that ibase_globals_id ibase_globals = ts_resource(ibase_globals_id); REGISTER_INI_ENTRIES(); ====================================================== ... I'm not sure how to get onto the CVS to send this fix in. Will someone please send it in on my behalf? Thank you. Sincerely, Albert Chau. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6883

« previous php.dev (#36173) next »