php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43019 mysql extension : php_mysql.c compile fails in win32 specific section
Submitted: 2007-10-18 13:06 UTC Modified: 2007-10-18 13:38 UTC
From: Jos dot Snellings at pandora dot be Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.2.4 OS: win32
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Jos dot Snellings at pandora dot be
New email:
PHP Version: OS:

 

 [2007-10-18 13:06 UTC] Jos dot Snellings at pandora dot be
Description:
------------
Two compile failures:

mysql_get_client_version: brackets were omitted in function call. 
Code should (probably) be:

PHP_MSHUTDOWN_FUNCTION(mysql)
{
#ifdef PHP_WIN32
	unsigned long client_ver = mysql_get_client_version();
        
	/* Can't call mysql_server_end() multiple times prior to 5.0.42 on Windows */
	if ((client_ver > 50042 && client_ver < 50100) || client_ver > 50122) {
		mysql_server_end();
	}
#else
	mysql_server_end();
#endif

	UNREGISTER_INI_ENTRIES();
	return SUCCESS;
}


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-18 13:28 UTC] johannes@php.net
The official snapshots build fine (-> snaps.php.net) and I can't find and error in the code. Could you please give the original error message?
 [2007-10-18 13:38 UTC] scottmac@php.net
This has already been fixed in CVS.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Aug 16 18:00:03 2025 UTC