From dc34874dc95668dda522ed249cda4a7927cae839 Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Wed, 12 Sep 2007 09:12:56 +0000 Subject: 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. --- ext/mysqli/php_mysqli.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/mysqli/php_mysqli.h') diff --git a/ext/mysqli/php_mysqli.h b/ext/mysqli/php_mysqli.h index 812d6b89d2..bc4ce56bee 100644 --- a/ext/mysqli/php_mysqli.h +++ b/ext/mysqli/php_mysqli.h @@ -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); \ } \ -- cgit v1.2.1