mirror of
https://github.com/php/php-src.git
synced 2026-04-28 18:53:33 +02:00
Fix stupid error, which happens only on Windows. And we thought this has
been fixed. Now my_thread_end() should be called and there should be no warnings in the error logs of exiting thread, which hasn't deinited, and leaks.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
PHP NEWS
|
||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
?? ??? 20??, PHP 5.2.5
|
||||
- Fixed missing brackets leading to build warning and error in the log.
|
||||
Win32 code). (Andrey)
|
||||
- Fixed leaks with mulitple connects on one mysqli object. (Andrey)
|
||||
- Fixed endianness detection on MacOS when building universal binary.
|
||||
(Uwe Schindler, Christian Speich, Tony)
|
||||
|
||||
+1
-1
@@ -665,7 +665,7 @@ PHP_MINIT_FUNCTION(mysqli)
|
||||
PHP_MSHUTDOWN_FUNCTION(mysqli)
|
||||
{
|
||||
#ifdef PHP_WIN32
|
||||
unsigned long client_ver = mysql_get_client_version;
|
||||
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();
|
||||
|
||||
@@ -241,9 +241,10 @@ PHP_MYSQLI_EXPORT(zend_object_value) mysqli_objects_new(zend_class_entry * TSRML
|
||||
#define MYSQLI_RETURN_LONG_LONG(__val) \
|
||||
{ \
|
||||
if ((__val) < LONG_MAX) { \
|
||||
RETURN_LONG((__val)); \
|
||||
RETURN_LONG((long) (__val)); \
|
||||
} else { \
|
||||
char *ret; \
|
||||
/* always used with my_ulonglong -> %llu */ \
|
||||
int l = spprintf(&ret, 0, "%llu", (__val)); \
|
||||
RETURN_STRINGL(ret, l, 0); \
|
||||
} \
|
||||
|
||||
Reference in New Issue
Block a user