From 867a1c64e92c54c4877b751b5271f224bce55958 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Thu, 12 Jun 2014 15:27:21 +0100 Subject: [PATCH] Fixed PHP-1120: The mongo driver fails to build as static extension. --- php_mongo.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/php_mongo.h b/php_mongo.h index 713c6c04f..62b7a3830 100644 --- a/php_mongo.h +++ b/php_mongo.h @@ -597,6 +597,8 @@ ZEND_END_MODULE_GLOBALS(mongo) # define MonGlo(v) (mongo_globals.v) #endif +#define phpext_mongo_ptr &mongo_module_entry + extern zend_module_entry mongo_module_entry; #endif