From 46bb7907542b10446bf67fa599d45ec317e856fc Mon Sep 17 00:00:00 2001 From: Jille Timmermans Date: Tue, 10 Apr 2012 16:51:41 +0200 Subject: [PATCH] Fix compilation as static PHP-module Signed-off-by: Jille Timmermans --- php_weakref.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/php_weakref.h b/php_weakref.h index 6fa8854..2685b50 100644 --- a/php_weakref.h +++ b/php_weakref.h @@ -37,6 +37,9 @@ #include "wr_weakref.h" +extern zend_module_entry weakref_module_entry; +#define phpext_weakref_ptr &weakref_module_entry + PHP_MINFO_FUNCTION(weakref); PHP_MINIT_FUNCTION(weakref);