PHP 4.0 Bug #6883: php_interbase.dll crashes on ibase_query()...
| From: | ac001 at figment dot net | Date: | Tue, 26 Sep 2000 04:23:48 +0000 |
| Subject: | PHP 4.0 Bug #6883: php_interbase.dll crashes on ibase_query()... | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33639@lists.php.net to get a copy of this message | ||
From: ac001@figment.net
Operating system: Windows NT, 98, etc.
PHP version: 4.0.2
PHP Bug Type: InterBase related
Bug description: php_interbase.dll crashes on ibase_query()...
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.