php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6883 php_interbase.dll crashes on ibase_query()...
Submitted: 2000-09-26 00:23 UTC Modified: 2000-12-07 11:42 UTC
From: ac001 at figment dot net Assigned:
Status: Closed Package: InterBase related
PHP Version: 4.0.2 OS: Windows NT, 98, etc.
Private report: No CVE-ID: None
 [2000-09-26 00:23 UTC] ac001 at figment dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-27 23:25 UTC] jah@php.net
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.

 [2000-12-07 11:42 UTC] sniper@php.net
No feedback.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC