Skip to content

Commit 5219e2c

Browse files
committed
Merge pull request #179
2 parents efd9331 + cd9cd3d commit 5219e2c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

php_bson.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ typedef struct {
7171
} php_phongo_bson_state;
7272

7373
#if PHP_VERSION_ID >= 70000
74-
#define PHONGO_BSON_STATE_INITIALIZER { {}, { PHONGO_TYPEMAP_NONE, NULL, PHONGO_TYPEMAP_NONE, NULL, PHONGO_TYPEMAP_NONE, NULL}, NULL}
74+
#define PHONGO_BSON_STATE_INITIALIZER { {{ 0 }}, { PHONGO_TYPEMAP_NONE, NULL, PHONGO_TYPEMAP_NONE, NULL, PHONGO_TYPEMAP_NONE, NULL}, NULL}
7575
#else
7676
#define PHONGO_BSON_STATE_INITIALIZER { NULL, { PHONGO_TYPEMAP_NONE, NULL, PHONGO_TYPEMAP_NONE, NULL, PHONGO_TYPEMAP_NONE, NULL}, NULL}
7777
#endif

src/contrib/php-ssl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
/* LCOV_EXCL_START */
3131
#include "php-ssl.h"
3232

33+
#if defined(NETWARE) || (defined(PHP_WIN32) && defined(_MSC_VER) && _MSC_VER >= 1900)
34+
#define timezone _timezone /* timezone is called _timezone in LibC */
35+
#endif
36+
3337
int php_mongo_matches_wildcard_name(const char *subjectname, const char *certname) /* {{{ */
3438
{
3539
char *wildcard = NULL;

0 commit comments

Comments
 (0)