#43019 [Fbk->Csd]: mysql extension : php_mysql.c compile fails in win32 specific section
| From: | scottmac@php.net | Date: | Thu, 18 Oct 2007 13:38:47 +0000 |
| Subject: | #43019 [Fbk->Csd]: mysql extension : php_mysql.c compile fails in win32 specific section | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118669@lists.php.net to get a copy of this message | ||
ID: 43019
Updated by: scottmac@php.net
Reported By: Jos dot Snellings at pandora dot be
-Status: Feedback
+Status: Closed
Bug Type: Compile Failure
Operating System: win32
PHP Version: 5.2.4
Previous Comments:
------------------------------------------------------------------------
[2007-10-18 13:38:10] scottmac@php.net
This has already been fixed in CVS.
------------------------------------------------------------------------
[2007-10-18 13:28:59] 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:06:23] 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;
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43019&edit=1